From: Greg Beaver Date: Fri, 7 Mar 2008 04:15:29 +0000 (+0000) Subject: test was failing because I had a file named 1 in the checkout directory X-Git-Tag: RELEASE_2_0_0a1~234 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c23969a4133a71ce8d0772730c731b75a829936;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 1be6cd3bb8..73bdfc93bf 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",