File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
standard /
tests /
strings /
nl_langinfo_basic.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:04 2012 UTC (12 years, 5 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
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===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>