import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-strings / strrpos_error.php
blob7cd7a27462c33043135e1077b2165f81e573aa23
1 <?php
2 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
3 * Description: Find position of last occurrence of 'needle' in 'haystack'.
4 * Source code: ext/standard/string.c
5 */
7 echo "*** Testing strrpos() function: error conditions ***";
8 echo "\n-- With Zero arguments --";
9 var_dump( strrpos() );
11 echo "\n-- With less than expected number of arguments --";
12 var_dump( strrpos("String") );
14 echo "\n-- With more than expected number of arguments --";
15 var_dump( strrpos("string", "String", 1, 'extra_arg') );
16 echo "*** Done ***";