com php-src: improve test clean section: ext/opcache/tests/bug78185.phpt
| From: | Remi Collet | Date: | Thu, 20 Jun 2019 09:51:18 +0000 |
| Subject: | com php-src: improve test clean section: ext/opcache/tests/bug78185.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106940@lists.php.net to get a copy of this message | ||
Commit: b3cfeda3c783d681452bfa80543c469dee92a5f8
Author: Remi Collet <remi@php.net> Thu, 20 Jun 2019 11:51:18 +0200
Parents: c2ee2e4c74410af69ef8d176c664983471d98794
Branches: PHP-7.2 PHP-7.3 PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b3cfeda3c783d681452bfa80543c469dee92a5f8
Log:
improve test clean section
Changed paths:
M ext/opcache/tests/bug78185.phpt
Diff:
diff --git a/ext/opcache/tests/bug78185.phpt b/ext/opcache/tests/bug78185.phpt
index cd96cf8..4be8431 100644
--- a/ext/opcache/tests/bug78185.phpt
+++ b/ext/opcache/tests/bug78185.phpt
@@ -15,6 +15,11 @@ foreach (glob(__DIR__ . '/*/' . __DIR__ . '/*.bin') as $p) {
<?php
foreach (glob(__DIR__ . '/*/' . __DIR__ . '/*.bin') as $p) {
unlink($p);
+ $p = dirname($p);
+ while(strlen($p) > strlen(__DIR__)) {
+ rmdir($p);
+ $p = dirname($p);
+ }
}
?>
--EXPECTF--