|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-06-20 20:09 UTC] felipe@php.net
-Status: Open
+Status: Wont fix
[2010-06-20 20:09 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 05:00:01 2025 UTC |
Description: ------------ locale_set_default() function returns true on invalid locale names. I know that you have UTODO tag there, but this tag is there for 2 years and link to mailing list refers to some unrelated spam message One more comment. I strongly recommend removing php_error(E_WARNING,....) call in PHP locale_set_default() function. It will cause debugging issues. If application cares about locale_set_default() results, it will check return code and will be forced to suppress all locale_set_default() errors in order to avoid E_WARNING error notice. If application does not care about it, it still has to suppress this warning. Increased level of noise prevents normal use of interpreter. Scripts have to choose between turning off all notices or adding @ in front of any over-noisy php function. Reproduce code: --------------- var_dump(locale_set_default('bogus')); Expected result: ---------------- bool(false) Actual result: -------------- bool(true)