#18637 [Ana->Bgs]: Error reporting problem

From: Date: Tue, 30 Jul 2002 22:09:13 +0000
Subject: #18637 [Ana->Bgs]: Error reporting problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15627@lists.php.net to get a copy of this message
ID: 18637 Updated by: sniper@php.net Reported By: amarsh@names.co.uk -Status: Analyzed +Status: Bogus Bug Type: *Configuration Issues Operating System: Redhat Linux 7.3 PHP Version: 4.2.2 New Comment: You're definately doing something wrong as I'm also unable to reproduce this. error_reporting = E_ALL & ~E_NOTICE will print all errors except notices.. Previous Comments: ------------------------------------------------------------------------ [2002-07-30 06:36:55] amarsh@names.co.uk Unfortunately I don't have time to continue with this - let's just put it down to something specific to my setup. My real point is that: error_reporting = E_ALL & ~E_NOTICE does not do what is suggested. What's particularly important however is that I'm now getting the error messages I expected. Feel free to close/delete this "bug" entry. Warm Regards Ant ------------------------------------------------------------------------ [2002-07-30 05:05:10] rasmus@php.net Well, clue #1 is that you don't seem to understand the & operator. E_ALL & E_NOTICE makes no sense whatsoever. So I am guessing you are confused about other bits too. I looked at the code, it hasn't changed in ages and this has always worked. I could of course be wrong, but given that nobody else has reported this and if this was broken we'd get thousands of questions, my conclusion is that this is specific to your server. ------------------------------------------------------------------------ [2002-07-30 05:00:59] amarsh@names.co.uk How can it be a user error when it is the php.ini file I'm editing?!?!?! It's not a script that I'm trying to run.... Here is my exact setup: Redhat Linux 7.3 Apache 1.3.26 PHP 4.2.2 (as dynamic module) mod_ssl 2.8.10 openssl 0.9.6d My PHP configure call was: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-track-vars Ant ------------------------------------------------------------------------ [2002-07-30 04:48:06] rasmus@php.net Unable to reproduce here. Works perfectly fine in my 4.2.2. Suspect user error. ------------------------------------------------------------------------ [2002-07-30 04:42:36] amarsh@names.co.uk Error reporting seems to be working in the reverse way to which it should e.g. error_reporting = E_ALL & ~E_NOTICE still displays all notices but error_reporting = E_ALL & E_NOTICE does NOT display notices. Just had fun for the past few hours trying to get this sorted on my new machine! Have not tried any other error settings but considering that in the php.ini error comments it is specified that error_reporting = E_ALL & ~E_NOTICE will show all errors EXCEPT notices and that isn't actually the case, that definitely constitutes a bug. I did scour the bug listings first but could not find any mention of this. I have PHP running as an Apache dynamic module. Warm Regards Ant ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18637&edit=1

« previous php.bugs (#15627) next »