Re: E_NOTICE on php.net...
| From: | nicos@php.net | Date: | Tue, 13 May 2003 22:47:49 +0000 |
| Subject: | Re: E_NOTICE on php.net... | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-17572@lists.php.net to get a copy of this message | ||
"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" ?
> Undefined index: eday in /local/Web/sites/phpweb/include/layout.inc on
line
> 468
> Undefined index: emonth in /local/Web/sites/phpweb/include/layout.inc on
> line 468
> Undefined index: eyear in /local/Web/sites/phpweb/include/layout.inc on
> line 468
> Undefined index: lang in /local/Web/sites/phpweb/my.php on line 23
> Undefined index: sday in /local/Web/sites/phpweb/include/layout.inc on
line
> 466
> Undefined index: smonth in /local/Web/sites/phpweb/include/layout.inc on
> line 466
> Undefined index: syear in /local/Web/sites/phpweb/include/layout.inc on
> line 466
> Undefined index: virtaul in
/local/Web/sites/phpweb/include/mirrortable.inc
> on line 81
> Undefined offset: 6 in /local/Web/sites/phpweb/mailing-lists.php on line
> 243
> Undefined variable: COUNTRY in /local/Web/sites/phpweb/include/layout.inc
> on line 208
> Undefined variable: HTTP_REFERER in /local/Web/sites/phpweb/search.php on
> line 71
> Undefined variable: df in /local/Web/sites/phpweb/do_download.php on line
> 43
> Undefined variable: function in /local/Web/sites/phpweb/manual-lookup.php
> on line 6
> Undefined variable: function in /local/Web/sites/phpweb/manual-lookup.php
> on line 8
> Undefined variable: ip in
/local/Web/sites/phpweb/include/ip-to-country.inc
> on line 72
> Undefined variable: lang in /local/Web/sites/phpweb/manual/add-note.php
on
> line 215
> Undefined variable: mr in /local/Web/sites/phpweb/do_download.php on line
> 43
> Undefined variable: note in /local/Web/sites/phpweb/manual/add-note.php
on
> line 234
> Undefined variable: notfound in /local/Web/sites/phpweb/quickref.php on
> line 40
> Undefined variable: notfound in /local/Web/sites/phpweb/quickref.php on
> line 68
> Undefined variable: sizes in /local/Web/sites/phpweb/download-docs.php on
> line 160
> Undefined variable: sizes in /local/Web/sites/phpweb/download-docs.php on
> line 168
> Undefined variable: text in /local/Web/sites/conf/index.php on line 20
>
> would anyone be noble enough to fix them all ? :)
>
> Thanks,
>
> James
>
> --
> James Cox :: james@imajes.info :: http://imajes.info/
> Was I helpful?
http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/
>
> If you go on with this nuclear arms race, all you are going to do is make
> the rubble bounce. - Sir Winston Leonard Spencer Churchill
>
>