Annotation of embedaddon/php/ext/standard/tests/strings/strings001.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test whether strstr() and strrchr() are binary safe.
3: --FILE--
4: <?php
5: /* Do not change this test it is a README.TESTING example. */
6: $s = "alabala nica".chr(0)."turska panica";
7: var_dump(strstr($s, "nic"));
8: var_dump(strrchr($s," nic"));
9: ?>
10: --EXPECTREGEX--
11: string\(18\) \"nica\x00turska panica\"
12: string\(7\) \" panica\"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>