Re: [ZEND-ENGINE-CVS] cvs: Zend(PHP_4_3) / zend_execute.c
| From: | Moriyoshi Koizumi | Date: | Tue, 27 Jan 2004 15:33:10 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: Zend(PHP_4_3) / zend_execute.c | ||
| References: | 1 2 3 4 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-2283@lists.php.net to get a copy of this message | ||
On 2004/01/28, at 0:02, Ilia Alshanetsky wrote:
On January 27, 2004 09:57 am, Moriyoshi Koizumi wrote:Maybe I'm not missing anything. Although a fatal error had stopped entire execution, the execution would continue regardless of parse errors in the included script as of the old behaviour. The change might be trivial, but it's quite likely to clutter something we've not ever noticed. BTW, shouldn't include_once() and require_once() follow the new behaviour as well if we really want to make them bail on parse error? MoriyoshiIf it can be achieved with a single if line, that's the way to go, I think. Keeping BC is the primary thing even if it's semantically wrong.I think you maybe missing the problem here. It does not matter if you do include() or require() when you have a fatal error. In both cases the execution will be stopped. The only change is that we know consider a parse error a fatal error (like it is in 'main' script), so when it happens script execution is stopped.