Including file from a registered shutown function on a syntax parse error

From: Date: Mon, 01 Feb 2010 01:38:39 +0000
Subject: Including file from a registered shutown function on a syntax parse error
Groups: php.general 
Request: Send a blank email to php-general+get-301708@lists.php.net to get a copy of this message
Greetings, If I register a shutdown function in PHP (to catch syntax parse errors and send them in logs), it looks like I can open files, but I cannot do includes - that is, if the reason of exit is a syntax parse error. Is this a desired effect? It seems a tad odd that I could do eval(preg_replace("#^<\?[php]?#", "", file_get_contents($file))); but not include($file); -- Marc Trudel-Bélisle www.wizcorp.jp

« previous php.general (#301708) next »