php-src/ext/ereg/tests/007.phpt
2008-11-18 17:55:07 +00:00

12 lines
237 B
PHP

--TEST--
Test empty result buffer in reg_replace
--FILE--
<?php
$a="abcd";
$b=ereg_replace("abcd","",$a);
echo "strlen(\$b)=".strlen($b);
?>
--EXPECTF--
Deprecated: Function ereg_replace() is deprecated in %s on line %d
strlen($b)=0