diff options
author | Remi Collet <remi@php.net> | 2019-06-20 11:51:18 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-06-20 12:24:05 +0200 |
commit | 4f40d81b8d32575d4ddf30109eb05d2b093b6301 (patch) | |
tree | fe8f1ac8e5f1958359d59b36cb235ba16e850835 | |
parent | e1dc9d6c1ea7dd6f3032fbe5c89c02b60c237d8b (diff) | |
download | php-git-4f40d81b8d32575d4ddf30109eb05d2b093b6301.tar.gz |
improve test clean section
(cherry picked from commit b3cfeda3c783d681452bfa80543c469dee92a5f8)
-rw-r--r-- | ext/opcache/tests/bug78185.phpt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/opcache/tests/bug78185.phpt b/ext/opcache/tests/bug78185.phpt index cd96cf848c..4be8431641 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-- |