Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.1

Bug #2851 notice while negotiating language
Submitted: 2004-11-29 08:42 UTC Modified: 2004-11-30 04:28 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)    
Subscription  


 [2004-11-29 08: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

Comments

 [2004-11-30 04:28 UTC] mike
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.