]> 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:14:53 +0000 (04:14 +0000)
committerGreg Beaver <cellog@php.net>
Fri, 7 Mar 2008 04:14:53 +0000 (04:14 +0000)
# note to tests writers: never assume anything about directory
# contents.

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

index bf976093a23016b47994dd81522fb794c4876440..e75b1edd387f98cb3a9e762ae54d598f6ba23cd9 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",