summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/fscanf_error.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/fscanf_error.phpt')
-rw-r--r--ext/standard/tests/file/fscanf_error.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/tests/file/fscanf_error.phpt b/ext/standard/tests/file/fscanf_error.phpt
index d5b2ba73aa..0724d6c539 100644
--- a/ext/standard/tests/file/fscanf_error.phpt
+++ b/ext/standard/tests/file/fscanf_error.phpt
@@ -8,7 +8,7 @@ Test fscanf() function: error conditions
*/
echo "*** Testing fscanf() for error conditions ***\n";
-$file_path = dirname(__FILE__);
+$file_path = __DIR__;
$filename = "$file_path/fscanf_error.tmp";
$file_handle = fopen($filename, 'w');
@@ -46,7 +46,7 @@ echo "\n*** Done ***";
?>
--CLEAN--
<?php
-$file_path = dirname(__FILE__);
+$file_path = __DIR__;
$filename = "$file_path/fscanf_error.tmp";
unlink($filename);
?>