mirror of
https://github.com/php/php-src.git
synced 2026-03-25 16:52:18 +01:00
The qa.php.net currently includes nice collection of information about tests and how to run them. Instead of maintaining two locations of this information, this patch removes the README.TESTING from the php-src repo. Patch for qa.php.net has been sent separately to that repo.
12 lines
262 B
PHP
12 lines
262 B
PHP
--TEST--
|
|
Test whether strstr() and strrchr() are binary safe.
|
|
--FILE--
|
|
<?php
|
|
$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\"
|