2006-03-26 02:15:47 +00:00
|
|
|
|
--TEST--
|
|
|
|
|
Test strtotitle
|
|
|
|
|
--SKIPIF--
|
|
|
|
|
<?php
|
|
|
|
|
if (!setlocale(LC_CTYPE, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1", "ISO8859-1")) {
|
|
|
|
|
die("skip locale needed for this test is not supported on this platform");
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
--INI--
|
|
|
|
|
unicode.script_encoding=ISO-8859-1
|
|
|
|
|
unicode.output_encoding=ISO-8859-1
|
|
|
|
|
--FILE--
|
|
|
|
|
<?php
|
|
|
|
|
declare(encoding="latin1");
|
|
|
|
|
setlocale(LC_ALL, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1", "ISO8859-1");
|
|
|
|
|
|
|
|
|
|
$strings = array( "<22>en", "<22>ret", "<22>ret <20>en" );
|
|
|
|
|
|
|
|
|
|
foreach( $strings as $string )
|
|
|
|
|
{
|
|
|
|
|
echo ucwords( $string ), "\n";
|
|
|
|
|
echo strtotitle( $string ), "\n";
|
|
|
|
|
}
|
|
|
|
|
?>
|
2008-05-27 10:50:48 +00:00
|
|
|
|
--EXPECTF--
|
2008-02-23 22:30:08 +00:00
|
|
|
|
Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
|
2006-03-26 02:15:47 +00:00
|
|
|
|
SSen
|
|
|
|
|
Ssen
|
|
|
|
|
<EFBFBD>ret
|
|
|
|
|
<EFBFBD>ret
|
|
|
|
|
<EFBFBD>ret SSen
|
|
|
|
|
<EFBFBD>ret Ssen
|