2 Test is_executable() function: usage variations - invalid file names
5 if (substr(PHP_OS, 0, 3) == 'WIN') {
6 die('skip not for windows');
8 require __DIR__ . '/../skipif_root.inc';
12 /* Prototype: bool is_executable ( string $filename );
13 Description: Tells whether the filename is executable
16 /* test is_executable() with invalid arguments */
18 echo "*** Testing is_executable(): usage variations ***\n";
20 $file_handle = fopen(__FILE__, "r");
23 echo "\n*** Testing is_executable() on invalid files ***\n";
24 $invalid_files = array(
34 /* loop through to test each element in the above array
35 is an executable file */
36 foreach( $invalid_files as $invalid_file ) {
37 var_dump( is_executable($invalid_file) );
44 *** Testing is_executable(): usage variations ***
46 *** Testing is_executable() on invalid files ***