1--TEST-- 2Bug #27278 (*printf() functions treat arguments as if passed by reference) 3--FILE-- 4<?php 5 6function foo ($a) 7{ 8 $a=sprintf("%02d",$a); 9 var_dump($a); 10} 11 12$x="02"; 13var_dump($x); 14foo($x); 15var_dump($x); 16 17?> 18--EXPECT-- 19string(2) "02" 20string(2) "02" 21string(2) "02" 22