1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 05:21:02 +02:00

change to use EXPECTREGEX and rename

This commit is contained in:
Marcus Boerger
2002-10-26 16:56:26 +00:00
parent cc4c0634fe
commit 24fe2a0f2d

View File

@@ -0,0 +1,12 @@
--TEST--
Test whether strstr() and strrchr() are binary safe.
--FILE--
<?php
/* Do not change this test it is a REATME.TESTING example. */
$s = "alabala nica".chr(0)."turska panica";
var_dump(strstr($s, "nic"));
var_dump(strrchr($s," nic"));
?>
--EXPECTREGEX--
string\(18\) \"nica\x00turska panica\"
string\(19\) \" nica\x00turska panica\"