From: Greg Beaver Date: Fri, 7 Mar 2008 04:14:53 +0000 (+0000) Subject: test was failing because I had a file named 1 in the checkout directory X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~687 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1dac2d21a834e2bdd18409c4f9041133d102b5f4;p=php test was failing because I had a file named 1 in the checkout directory # note to tests writers: never assume anything about directory # contents. --- diff --git a/ext/standard/tests/file/007_error.phpt b/ext/standard/tests/file/007_error.phpt index bf976093a2..e75b1edd38 100644 --- a/ext/standard/tests/file/007_error.phpt +++ b/ext/standard/tests/file/007_error.phpt @@ -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",