Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9255 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72374 invoked by uid 1010); 16 Apr 2004 14:47:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 72346 invoked from network); 16 Apr 2004 14:47:20 -0000 Received: from unknown (HELO jengate.thur.de) (217.17.193.190) by pb1.pair.com with SMTP; 16 Apr 2004 14:47:20 -0000 Received: from jengate.thur.de (localhost [127.0.0.1]) by jengate.thur.de (8.12.11/8.12.9) with ESMTP id i3GEj2BW025042 for ; Fri, 16 Apr 2004 16:45:02 +0200 Received: (from uucp@localhost) by jengate.thur.de (8.12.11/8.12.6/Submit) with UUCP id i3GEj1rc025037 for internals@lists.php.net; Fri, 16 Apr 2004 16:45:01 +0200 Received: (from weigelt@localhost) by metux.de (8.12.10/8.12.10) id i3GEfTwF006643 for internals@lists.php.net; Fri, 16 Apr 2004 16:41:29 +0200 Date: Fri, 16 Apr 2004 16:41:29 +0200 To: php-dev Message-ID: <20040416144129.GB3608@nibiru.metux.de> Reply-To: weigelt@metux.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: execution on errors From: weigelt@metux.de (Enrico Weigelt) Hi folks, I've often got the problem that a larger application behaves unclear if some of the include()'d/require()'ed scripts has some syntax error. It seems that the all the code is executed until this require-statement where the parse fails. If its an include() then it seems execution proceeds nevertheless. In some situations this can be helpful, i.e. for larger frameworks checking themselves (for example a module loader can simply try to include() the module's code and properly handle the error when it fails). But on the other hand there are many cases where this is problematic. Is there any way to chance this behavour ? regards, -- --------------------------------------------------------------------- Enrico Weigelt == metux IT services phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact@metux.de cellphone: +49 174 7066481 --------------------------------------------------------------------- -- DSL-Zugang ab 0 Euro. -- statische IP -- UUCP -- Hosting -- ---------------------------------------------------------------------