PHP 4.0 Bug #8291 Updated: retval of setlocale()

From: Date: Mon, 18 Dec 2000 13:49:20 +0000
Subject: PHP 4.0 Bug #8291 Updated: retval of setlocale()
Groups: php.dev 
Request: Send a blank email to php-dev+get-41743@lists.php.net to get a copy of this message
ID: 8291 User Update by: cynic@mail.cz Status: Closed Bug Type: Feature/Change Request Description: retval of setlocale() I've noticed it returns the current locale when called with '0' (IIRC) for locale argument. But I thought it would make more sense if it was in sync with behavior of other related functions that return the OLD value when a new value is successfully set or false on failure. (see ini_set(), set_error_handler(), error_reporting(), and possibly others. Previous Comments: --------------------------------------------------------------------------- [2000-12-17 12:20:01] sniper@php.net Please read the manual page: http://www.php.net/setlocale --Jani --------------------------------------------------------------------------- [2000-12-16 07:55:12] cynic@mail.cz shouldn't setlocale() return the OLD value? that makes much sense to me since there's no getlocale(), and ini_set() and such behave that way. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8291

« previous php.dev (#41743) next »