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