Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with Notices

0 views
Skip to first unread message

Madeleine D.

unread,
Jan 4, 2004, 10:36:24 PM1/4/04
to php-w...@lists.php.net
I have the following error writes set in my php.ini file:

error_reporting = E_ALL & ~E_NOTICE


For a long time, that worked just fine - giving us only errors/warnings
that we needed to see. Now, all of a sudden, we are getting notices
written to the error file. It's a problem because there are a number of
valid ones, and they get in the way of trying to track down genuine errors.

I've tried creating a new php.ini file; I've even copied a new php
directory over from a working machine.

No luck. Any clue as to how we can ditch these notices?

thanks
Madeleine D.

Choinet

unread,
Jan 5, 2004, 1:47:55 AM1/5/04
to php-w...@lists.php.net
Do your .htaccess files have a php_value for
error_reporting, or do the scripts have any instances
of error_reporting() in them?

> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003

mmd...@bctonline.com

unread,
Jan 10, 2004, 5:31:01 PM1/10/04
to php-w...@lists.php.net
Madeleine D. wrote:
> I have the following error writes set in my php.ini file:
>
> error_reporting = E_ALL & ~E_NOTICE
>


I'm posting a response to this for the next poor soul who might come along.

After long, lost hours, we still don't have an explanation as to why the
php.ini settings are being ignored, but we do have a solution - culled
from a similar posting on the php bug site.

We've added the line:

error_reporting(E_ALL & ~E_NOTICE);

to our first screen. That seems to hold for all the screens called
thereafter. Instead of 3000+ notice lines, which was impacting
performance in a major way, we now have the two or 3 warnings that we
expect.

thanks for all the other suggestions.

Madeleine D.

0 new messages