mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
37 lines
778 B
PHP
37 lines
778 B
PHP
--TEST--
|
|
Test nl_langinfo() function : basic functionality
|
|
--SKIPIF--
|
|
<?php
|
|
if( substr(PHP_OS, 0, 3) == 'WIN'){
|
|
die('skip Not for Windows');
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
/* Prototype : string nl_langinfo ( int $item )
|
|
* Description: Query language and locale information
|
|
* Source code: ext/standard/string.c
|
|
*/
|
|
|
|
echo "*** Testing nl_langinfo() : basic functionality ***\n";
|
|
|
|
$original = setlocale(LC_ALL, 'C');
|
|
|
|
var_dump(nl_langinfo(ABDAY_2));
|
|
var_dump(nl_langinfo(DAY_4));
|
|
var_dump(nl_langinfo(ABMON_7));
|
|
var_dump(nl_langinfo(MON_4));
|
|
var_dump(nl_langinfo(RADIXCHAR));
|
|
|
|
setlocale(LC_ALL, $original);
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
*** Testing nl_langinfo() : basic functionality ***
|
|
string(3) "Mon"
|
|
string(9) "Wednesday"
|
|
string(3) "Jul"
|
|
string(5) "April"
|
|
string(1) "."
|
|
===DONE===
|