From: Peter Kokot Date: Thu, 27 Jun 2019 00:21:31 +0000 (+0200) Subject: Clean up files after the tests are run X-Git-Tag: php-7.4.0alpha3~126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57424f272c488d479e7caa9c7eb86247053fe883;p=php Clean up files after the tests are run --- 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-- --EXPECTF--