cvs: php4 /tests/lang 034.phpt 035.phpt

From: Date: Wed, 17 Jul 2002 08:49:27 +0000
Subject: cvs: php4 /tests/lang 034.phpt 035.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12867@lists.php.net to get a copy of this message
hholzgra Wed Jul 17 04:49:27 2002 EDT Added files: /php4/tests/lang 034.phpt 035.phpt Log: Zend Engine behaviour is affected by setlocale() due to use of locale aware functions like strtod(), atof(), tolower(), toupper() :( Index: php4/tests/lang/034.phpt +++ php4/tests/lang/034.phpt --TEST-- Locale settings affecting float parsing --SKIPIF-- <?php # try to activate a german locale $status = false; foreach(array("de_DE", "de", "german", "ge") as $lang) { if($lang == setlocale("LC_ALL", $lang)) { $status = true; continue; } } if(!$status) print "skip"; ?> --POST-- --GET-- --FILE-- <?php # try to activate a german locale foreach(array("de_DE", "de", "german", "ge") as $lang) { if($lang == setlocale("LC_ALL", $lang)) { continue; } } echo (float)"3.14"; ?> --EXPECT-- 3.14 Index: php4/tests/lang/035.phpt +++ php4/tests/lang/035.phpt ---- EXPECTED OUTPUT test_i test ---- ACTUAL OUTPUT test_itest ---- FAILED

« previous php.cvs (#12867) next »