On Fri, 30 Jan 2004, Ilia Alshanetsky wrote:
> It seems like the only way to distinguish between a parse error and a 
> non-existant file for regular include() is by doing a zend_stream_open() upon 
> failure to determine if the file is avaliable. If it is, then we return a 
> parse error and if it does not we continue execution. This does add a small 
> overhead for failed includes, but IMHO if a non-existant files are being 
> included performance is not a big consideration.

Granted, I haven't looked closely at the code, but PHP knows that failure 
to open an include file is an E_WARNING not an E_ERROR.  An E_WARNING 
should never cause script execution to terminate.  If we already know it 
is non-fatal, why is the extra check needed?

-Rasmus

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to