Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44354 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68402 invoked from network); 18 Jun 2009 14:40:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jun 2009 14:40:57 -0000 X-Host-Fingerprint: 85.21.236.169 xdmitri.static.corbina.ru Received: from [85.21.236.169] ([85.21.236.169:22502] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/C1-58950-8F15A3A4 for ; Thu, 18 Jun 2009 10:40:57 -0400 Message-ID: To: internals@lists.php.net Date: Thu, 18 Jun 2009 18:40:56 +0400 Lines: 58 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Posted-By: 85.21.236.169 Subject: bug #48583 or display_errors saga From: dmda@yandex.ru ("jvlad") If the bug #48583 can't be accepted through bugs.php.net, I think it makes sense to discuss it here. In short the question is: Should display_errors and the other error-routing settings work or not? I belive they are very important and should always work. Just my 2cents. Long story: display_errors=off setting won't stop some errors from appearing in the output. Any errors thrown by modules at the initialization phase shoud be accumulated somewhere, not passed to the output directly. In partcilar, if you have an error in php.ini, display_errors=OFF won't have any effect. Reproduce code: --------------- php.ini: ======================================= error_reporting=E_ALL | E_DEPRECATED error_log="D:\php-5.3RC3-Win32\php.log" log_errors=On display_errors=Off #something ;a comment ======================================= command line: ======================================= php-cgi.exe -i >somefile.html ======================================= Expected result: ---------------- nothing in the output Actual result: -------------- 2 errors appeared on screen: PHP Deprecated: Comments starting with '#' are deprecated in D:\php-5.3RC3-Win32\php.ini on line 5 in Unknown on line 0 PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any o f those methods and you are still getting this warning, you most likely misspelled the timezone iden tifier. We selected 'Europe/Moscow' for '4.0/DST' instead in Unknown on line 0