PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP » Bug #2851

notice while negotiating language

Details

Submitted2004-11-29 13:42 UTC
Fromalexandre at tela-botanica dot org
Assignedmike
StatusClosed
PackageHTTP
PHP Version4.3.9
OSdebian 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