summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/flock_error.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/flock_error.phpt')
-rw-r--r--ext/standard/tests/file/flock_error.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/tests/file/flock_error.phpt b/ext/standard/tests/file/flock_error.phpt
index 9f64dd0531..eaf141d573 100644
--- a/ext/standard/tests/file/flock_error.phpt
+++ b/ext/standard/tests/file/flock_error.phpt
@@ -10,7 +10,7 @@ Description: PHP supports a portable way of locking complete files
echo "*** Testing error conditions ***\n";
-$file = __DIR__."/flock.tmp";
+$file = preg_replace("~\.phpt?$~", null, __FILE__);
$fp = fopen($file, "w");
/* array of operatons */