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)    
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:
Solve the problem : 1 + 22 = ?

 [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


 [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 In case this was a 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.