|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-16 18:51 UTC] danbrown@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 18:00:02 2026 UTC |
Description: ------------ In the examples for locale_accept_from_http Locale::acceptFromHttp the brackets for the $_SERVER variable are wrong. Reproduce code: --------------- The current example: <?php $locale = locale_accept_from_http($_SERVER('HTTP_ACCEPT_LANGUAGE')); echo $locale; ?> <?php $locale = Locale::acceptFromHttp($_SERVER('HTTP_ACCEPT_LANGUAGE')); echo $locale; ?> Expected result: ---------------- correct example, no error Actual result: -------------- wrong example, error