mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
13 lines
324 B
PHP
13 lines
324 B
PHP
--TEST--
|
|
Test whether strstr() and strrchr() are binary safe.
|
|
--FILE--
|
|
<?php
|
|
/* Do not change this test it is a README.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\(7\) \" panica\"
|