This commit is contained in:
Antony Dovgal 2006-05-29 20:31:48 +00:00
parent 8ca3826a28
commit fb696afd10

View File

@ -0,0 +1,16 @@
--TEST--
preg_replace() and invalid UTF8
--FILE--
<?php
$string = urldecode("search%e4");
$result = preg_replace("#(&\#x*)([0-9A-F]+);*#iu","$1$2;",$string);
var_dump($result);
var_dump(preg_last_error());
echo "Done\n";
?>
--EXPECT--
NULL
int(4)
Done