Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7415 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3343 invoked by uid 1010); 30 Jan 2004 10:31:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3319 invoked from network); 30 Jan 2004 10:31:32 -0000 Received: from unknown (HELO colo.lerdorf.com) (66.198.51.121) by pb1.pair.com with SMTP; 30 Jan 2004 10:31:32 -0000 Received: from DELL (c-24-6-108-60.client.comcast.net [24.6.108.60]) by colo.lerdorf.com (8.12.11/8.12.11/Debian-1) with ESMTP id i0UAVL0Y013136 for ; Fri, 30 Jan 2004 02:31:21 -0800 Date: Fri, 30 Jan 2004 02:29:25 -0800 (Pacific Standard Time) To: internals@lists.php.net Message-ID: X-X-Sender: rasmus@lerdorf.com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on colo Subject: Warnings in include files suddenly treated as fatal From: rasmus@lerdorf.com (Rasmus Lerdorf) Ilia, I think there is a problem with your latest fixes on the 4_3 branch. Stuff that used to work is now broken. Stuff like this: main.php: include 'inc1.inc'; inc1.inc: @include 'inc2.inc'; If inc2.inc does not exist we now get an error similar to: Warning: main(./lang/serendipity_lang_.inc.php): failed to open stream: No such file or directory in /var/www/s9y/serendipity_lang.inc.php on line 5 Warning: main(): Failed opening './inc2.inc' for inclusion (include_path='.:/usr/local/lib/php') on line {the include line #} Fatal error: Parse error inside included file. in /var/www/htdocs/inc1.inc on line {the include line #} Remember that it is ok for an include to not find the file. We issue a warning and move on. It should in no way be treated as a fatal error. -Rasmus