cvs: pear /PHP_Compat/tests/function strripos.phpt

From: Date: Mon, 30 May 2005 20:42:36 +0000
Subject: cvs: pear /PHP_Compat/tests/function strripos.phpt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-32257@lists.php.net to get a copy of this message
aidan Mon May 30 16:42:36 2005 EDT Modified files: /pear/PHP_Compat/tests/function strripos.phpt Log: Added tests for bug 4410 and first-last-letter scan bug http://cvs.php.net/diff.php/pear/PHP_Compat/tests/function/strripos.phpt?r1=1.3&r2=1.4&ty=u Index: pear/PHP_Compat/tests/function/strripos.phpt diff -u pear/PHP_Compat/tests/function/strripos.phpt:1.3 pear/PHP_Compat/tests/function/strripos.phpt:1.4 --- pear/PHP_Compat/tests/function/strripos.phpt:1.3 Sat Jun 19 01:43:23 2004 +++ pear/PHP_Compat/tests/function/strripos.phpt Mon May 30 16:42:36 2005 @@ -21,6 +21,12 @@ var_dump(strripos($haystack, $needle, -10)); var_dump(strripos($haystack, $needle, -30)); var_dump(strripos($haystack, $needle, -50)); + +// Test for Bug xx +var_dump(strripos($haystack, 'How about no')); + +// Test for negative offset scanning bug +var_dump(strripos('abcdef', 'bc', -5)); ?> --EXPECT-- int(41) @@ -30,4 +36,6 @@ int(41) int(11) int(11) -bool(false) \ No newline at end of file +bool(false) +bool(false) +int(1) \ No newline at end of file

« previous php.pear.cvs (#32257) next »