summaryrefslogtreecommitdiff
path: root/ext/standard/tests/bug71827.phpt
blob: eedb9fb549d3f733ac60eebb71daeb013b4fc42a (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
Bug #71827 (substr_replace bug when length type is string )
--FILE--
<?php
$line  = str_repeat(' ',20); $value ='03'; $pos=0; $len='2';
$line = substr_replace($line,$value,$pos,$len);
echo "[$line]\n";
?>
--EXPECT--
[03                  ]