diff options
Diffstat (limited to 'ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt')
-rw-r--r-- | ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt b/ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt index 23c33b60d3..a50317e8db 100644 --- a/ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt +++ b/ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt @@ -13,7 +13,7 @@ Test file-get_contents() and file_put_contents() functions : error conditions echo "*** Testing error conditions ***\n"; -$file_path = dirname(__FILE__); +$file_path = __DIR__; echo "\n-- Testing with Non-existing file --\n"; print( file_get_contents("/no/such/file/or/dir") ); @@ -30,7 +30,7 @@ echo "\n*** Done ***\n"; ?> --CLEAN-- <?php -$file_path = dirname(__FILE__); +$file_path = __DIR__; unlink($file_path."/file_put_contents.tmp"); unlink($file_path."/file_put_contents1.tmp"); |