note 55834 added to function.setlocale

From: Date: Mon, 15 Aug 2005 03:42:39 +0000
Subject: note 55834 added to function.setlocale
Groups: php.notes 
Request: Send a blank email to php-notes+get-93657@lists.php.net to get a copy of this message
When i tried to get the current locale (e.g. after i set the lang to german with setlocale(LC_ALL, 'de_DE'); ), the following did not work on my suse linux 9.0-box: $currentLocale = setlocale(LC_ALL, NULL); This code did a reset to the server-setting. $currentLocale = setlocale(LC_ALL, 0); works perfectly for me, but the manual says NULL and 0 are equal in this case, but NULL seems to act like "". ---- Manual Page -- http://www.php.net/manual/en/function.setlocale.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55834 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55834&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55834&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55834&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55834&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55834&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55834&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55834&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#93657) next »