diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-06 12:11:27 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-06 12:11:27 +0100 |
commit | f5e8e1c61e4ed82db42d82d01c4e52b767effa78 (patch) | |
tree | 397eecc2636610fe1aa0bd4fb15858a02fbee469 /system/core/Loader.php | |
parent | afca1f0b9585d7119b80e4b188d06ee0bcc8eca1 (diff) |
Changed rewrite_short_tags to have no effect on PHP 5.4
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r-- | system/core/Loader.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php index 12daaa928..20cf7ef33 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php @@ -833,7 +833,7 @@ class CI_Loader { // If the PHP installation does not support short tags we'll // do a little string replacement, changing the short tags // to standard PHP echo statements. - if ((bool) @ini_get('short_open_tag') === FALSE AND config_item('rewrite_short_tags') == TRUE) + if ( ! is_php('5.4') && (bool) @ini_get('short_open_tag') === FALSE && config_item('rewrite_short_tags') == TRUE) { echo eval('?>'.preg_replace('/;*\s*\?>/', '; ?>', str_replace('<?=', '<?php echo ', file_get_contents($_ci_path)))); } |