]> granicus.if.org Git - php/commitdiff
test was failing because I had a file named 1 in the checkout directory
authorGreg Beaver <cellog@php.net>
Fri, 7 Mar 2008 04:15:29 +0000 (04:15 +0000)
committerGreg Beaver <cellog@php.net>
Fri, 7 Mar 2008 04:15:29 +0000 (04:15 +0000)
# note to tests writers: never assume anything about directory
# contents.

ext/standard/tests/file/007_error.phpt

index 1be6cd3bb805cc1fe968c9e70b173bbde24b114e..73bdfc93bf9b98802f2e2c5539b73c649529ae97 100644 (file)
@@ -44,6 +44,7 @@ var_dump( feof($fp, "handle"));
 fclose($fp);
 
 /* test invalid arguments : non-resources */
+chdir(dirname(__FILE__));
 echo "-- Testing fopen(), fclose() & feof() with invalid arguments --\n";
 $invalid_args = array (
   "string",