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 db2a881d6c..ea6a91e33d 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');
@@ -56,7 +56,7 @@ echo "\n*** Done ***";
?>
--CLEAN--
<?php
-$file_path = dirname(__FILE__);
+$file_path = __DIR__;
$filename = "$file_path/fscanf_error.tmp";
unlink($filename);
?>