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