mirror of
https://github.com/php/php-src.git
synced 2024-10-16 22:12:33 +00:00
87fac43ac0
- html_translation_table and setlocale tests are no longer relevant - there are a number of ANSI-encoded files. Is this deliberate?
22 lines
271 B
PHP
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"
|