On 03/08/06, Derick Rethans <[EMAIL PROTECTED]> wrote:
On Thu, 3 Aug 2006, Richard Quadling wrote:
> The issue this brings is toggling E_STRICT on and off at RUNTIME
> required? (I suspect that would be a LOT of work).
It's only an issue for the first script that is opened... not for
includes. As the parsing E_STRICT things work fine.... but only *after*
the file has been executed. In this example the included file will never
throw e_Strict errors for example:
<?php
error_reporting(0);
include 'included.php';
?>
Aha. So, if I use an __autoloader, I COULD be clever and place my
"loose" classes in 1 directory and my "strict" classes in another. The
autoloader would search for the class and set the error_reporting
level appropriately before including/requiring.
--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php