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

From: Date: Thu, 31 Jan 2002 13:41:28 +0000
Subject: Bug #15313 Updated: Error in HTTP::negotiateLanguage (with solution)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-4312@lists.php.net to get a copy of this message
ID: 15313 Updated by: mj Reported By: tfranz@moleman.de Old Status: Open Status: Closed Bug Type: PEAR related Operating System: Linux PHP Version: 4.1.1 New Comment: Fixed in CVS. Thanks for your report. Previous Comments: ------------------------------------------------------------------------ [2002-01-31 07:44:02] tfranz@moleman.de 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 this bug report at http://bugs.php.net/?id=15313&edit=1

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