diff options
-rw-r--r-- | ext/standard/tests/file/flock_basic.phpt | 1 | ||||
-rw-r--r-- | ext/standard/tests/file/flock_error.phpt | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/ext/standard/tests/file/flock_basic.phpt b/ext/standard/tests/file/flock_basic.phpt index 7600184bf3..812c2958a5 100644 --- a/ext/standard/tests/file/flock_basic.phpt +++ b/ext/standard/tests/file/flock_basic.phpt @@ -9,7 +9,6 @@ Description: PHP supports a portable way of locking complete files */ echo "*** Testing flock() fun with file and dir ***\n"; -$file_path = __DIR__; $lock_file = preg_replace("~\.phpt?$~", null, __FILE__); diff --git a/ext/standard/tests/file/flock_error.phpt b/ext/standard/tests/file/flock_error.phpt index eaf141d573..26a8b3d01f 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 = preg_replace("~\.phpt?$~", null, __FILE__); +$file = preg_replace("~\.phpt?$~", '.tmp', __FILE__); $fp = fopen($file, "w"); /* array of operatons */ @@ -52,7 +52,7 @@ echo "\n*** Done ***\n"; ?> --CLEAN-- <?php -$file = __DIR__."/flock.tmp"; +$file = __DIR__."/flock_error.tmp"; unlink($file); ?> --EXPECTF-- |