php-src/ext/standard/tests/strings/bug27278.phpt
Steph Fox 87fac43ac0 - killed off UEXPECT
- html_translation_table and setlocale tests are no longer relevant
- there are a number of ANSI-encoded files. Is this deliberate?
2008-05-27 10:50:48 +00:00

22 lines
271 B
PHP

--TEST--
Bug #27278 (*printf() functions treat arguments as if passed by reference)
--FILE--
<?php
function foo ($a)
{
$a=sprintf("%02d",$a);
var_dump($a);
}
$x="02";
var_dump($x);
foo($x);
var_dump($x);
?>
--EXPECT--
unicode(2) "02"
unicode(2) "02"
unicode(2) "02"