Welcome Guest, Not a member yet? Register   Sign In
CI 1.7: Will automatic short tags be deprecated?
#8

[eluser]xwero[/eluser]
Sarre it depends on the rewrite_short_tags setting. If it's set to true all files will be checked for short tags. loader class snippet :
Code:
if ((bool) @ini_get('short_open_tag') === FALSE AND config_item('rewrite_short_tags') == TRUE)
        {
            echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
        }
I have no figures on the performance hit but if the setting is false the file just gets included.


Messages In This Thread
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-24-2008, 04:18 AM
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-24-2008, 04:31 AM
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-24-2008, 04:47 AM
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-24-2008, 09:05 AM
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-24-2008, 02:07 PM
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-24-2008, 02:20 PM
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-25-2008, 04:12 AM
CI 1.7: Will automatic short tags be deprecated? - by El Forum - 10-25-2008, 05:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB