Home » HTTP » HTTP » Bug #2851
notice while negotiating language
Details
| Submitted | 2004-11-29 13:42 UTC |
|---|---|
| From | alexandre at tela-botanica dot org |
| Assigned | mike |
| Status | Closed |
| Package | HTTP |
| PHP Version | 4.3.9 |
| OS | debian woody |
| Roadmaps | (Not assigned) |
Comments
[2004-11-29 13:42 UTC] alexandre at tela-botanica dot org
Description:
------------
line 110 - 111
@list($l, $q) = array_map('strtolower', array_map('trim', explode(';', $lang)));
Reproduce code:
---------------
$a = array_map ('trim', explode (';', $lang)) ;
if (isset ($a[1])) {
list($l, $q) = array_map('strtolower', $a) ;
} else {
list($l) = array_map('strtolower', $a) ;
}
Expected result:
----------------
No notice.
Note : we have this problem in handler reporting context.
Actual result:
--------------
notice : undefined offset 1 on line 111 in /usr/local/lib/php/HTTP.php
under debian