Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6716 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92723 invoked by uid 1010); 25 Dec 2003 17:36:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92668 invoked from network); 25 Dec 2003 17:36:35 -0000 Received: from unknown (HELO longsword.omniti.com) (66.80.117.3) by pb1.pair.com with SMTP; 25 Dec 2003 17:36:35 -0000 Received: from ip-66-80-117-254.nyc.megapath.net ([66.80.117.254] helo=[10.0.1.3]) by longsword.omniti.com with asmtp (TLSv1:RC4-SHA:128) (Exim 4.14) id 1AZZPX-0007Xh-4h; Thu, 25 Dec 2003 12:36:35 -0500 In-Reply-To: <5.1.0.14.2.20031225193237.07ec8e28@localhost> References: <5.1.0.14.2.20031225193237.07ec8e28@localhost> Mime-Version: 1.0 (Apple Message framework v609) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: Content-Transfer-Encoding: 7bit Cc: internals@lists.php.net Date: Thu, 25 Dec 2003 12:36:58 -0500 To: zeev@zend.com X-Mailer: Apple Mail (2.609) Subject: Re: [PHP-DEV] Error reporting behavior with streams From: george@omniti.com (George Schlossnagle) On Dec 25, 2003, at 12:32 PM, Zeev Suraski wrote: > People, > > When streams were introduced, the format of error messages involving > include/require changed significantly, and now emits two errors > instead of one. Am I the only one being bugged by this? I think we > can simply remove the REPORT_ERRORS option from > php_fopen_wrapper_for_zend(). Possibly, if there are cases where > php_stream_open_wrapper_as_file() can report something smarter than > just the inability to create the stream, we can add an option such as > REPORT_NONTRIVIAL_ERRORS, so that if the stream-level error has > something smart to say, it won't go unnoticed. > > Thoughts? I agree with you. Not only are their two errors, but the error for include/require specifically is not as clear as it once was. George