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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux