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 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)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 30 + 49 = ?

 
 [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

Comments

 [2004-11-30 09: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.