Re: E_NOTICE on php.net...
| From: | Maxim Maletsky | Date: | Wed, 14 May 2003 00:24:11 +0000 |
| Subject: | Re: E_NOTICE on php.net... | ||
| References: | 1 2 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-17590@lists.php.net to get a copy of this message | ||
On Wed, 14 May 2003 00:47:49 +0200
<nicos@php.net> wrote:
> "James Cox" <james@imajes.info> a écrit dans le message news:
> MMEPJPGPACDMPGEEKFMKIECLLCAA.james@imajes.info...
> > Ok, whilst debugging something else, I turned on E_NOTICE for php.net to
> see
> > if i could get a particular error message to appear. Instead for the 5
> > minutes it was on, I got 1.7mb of notices....
> >
> > a 'uniq' snippet of them is here:
> >
> > # cat php|sed -e 's/\[.*\] PHP Notice: //g'|sort|uniq
> > Undefined index: -1 in /local/Web/sites/phpweb/include/layout.inc on line
> > 494
> > Undefined index: / in /local/Web/sites/phpweb/source.php on line 45
> > Undefined index: HTTP_ACCEPT_LANGUAGE in
> > /local/Web/sites/phpweb/include/langchooser.inc on line 102
> > Undefined index: HTTP_ACCEPT_LANGUAGE in /local/Web/sites/phpweb/my.php
> on
> > line 93
>
> I was wondering which default value we should use if HTTP_ACCEPT_LANGUAGE is
> not set, should we use "en-us, en;q=0.50" ?
Useless to say that it is usually a spider when this value is not set.
--
Maxim Maletsky
maxim@php.net