PHP Short Tags Not Working Anymore - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: PHP Short Tags Not Working Anymore (/showthread.php?tid=8880) |
PHP Short Tags Not Working Anymore - El Forum - 06-03-2008 [eluser]Unknown[/eluser] After upgrading to 1.6.2, PHP short tags are not working anymore when the following configurations are used. From system/application/config/config.php: Code: $config['rewrite_short_tags'] = TRUE; From php.ini: Code: short_open_tag = Off These produce the error: Code: Parse error: syntax error, unexpected '<' in /home/waldemar/public_html/halalan/system/libraries/Loader.php(706) : eval()'d code on line 1 Line 706 in 1.6.1: Code: echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))).'<?php '); Line 706 in 1.6.2: Code: echo eval(preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path)))); The configurations above are working in 1.6.1. |