Bug #15313: Error in HTTP::negotiateLanguage (with solution)

From: Date: Thu, 31 Jan 2002 12:44:02 +0000
Subject: Bug #15313: Error in HTTP::negotiateLanguage (with solution)
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-4311@lists.php.net to get a copy of this message
From: tfranz@moleman.de Operating system: Linux PHP version: 4.1.1 PHP Bug Type: PEAR related Bug description: Error in HTTP::negotiateLanguage (with solution) The part of the negotiateLanguage Function where the server's accepted languages are spitted into an arry uses only HTTP_ACCEPT_LANGUAGE which is not declared global (so there are no visible languages to explode) Change the line from $accepted = split(',[[:space:]]*', $HTTP_ACCEPT_LANGUAGE); into $accepted = split(',[[:space:]]*', $_SERVER['HTTP_ACCEPT_LANGUAGE']); -- Edit bug report at: http://bugs.php.net/?id=15313&edit=1

« previous php.pear.dev (#4311) next »