Welcome Guest, Not a member yet? Register   Sign In
PHP Short Tags Not Working Anymore
#1

[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('?&gt;'.preg_replace("/;*\s*\?&gt;/", "; ?&gt;", str_replace('&lt;?=', '&lt;?php echo ', file_get_contents($_ci_path))).'&lt;?php ');

Line 706 in 1.6.2:
Code:
echo eval(preg_replace("/;*\s*\?&gt;/", "; ?&gt;", str_replace('&lt;?=', '&lt;?php echo ', file_get_contents($_ci_path))));

The configurations above are working in 1.6.1.




Theme © iAndrew 2016 - Forum software by © MyBB