import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-strings / strrchr_error.php
bloba4b58f9ee6e945430f1b4220c68a713d3c063a53
1 <?php
2 /* Prototype : string strrchr(string $haystack, string $needle);
3 * Description: Finds the last occurrence of a character in a string.
4 * Source code: ext/standard/string.c
5 */
7 echo "*** Testing strrchr() function: error conditions ***\n";
8 $haystack = "Hello";
9 $needle = "Hello";
10 $extra_arg = "Hello";
12 echo "\n-- Testing strrchr() function with Zero arguments --";
13 var_dump( strrchr() );
15 echo "\n-- Testing strrchr() function with less than expected no. of arguments --";
16 var_dump( strrchr($haystack) );
18 echo "\n-- Testing strrchr() function with more than expected no. of arguments --";
19 var_dump( strrchr($haystack, $needle, $extra_arg) );
21 echo "*** Done ***";