summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2019-06-20 11:51:18 +0200
committerRemi Collet <remi@php.net>2019-06-20 11:51:18 +0200
commitb3cfeda3c783d681452bfa80543c469dee92a5f8 (patch)
treebe542b837be83730e9d2eec4d4c6b49e26ce9a72
parentc2ee2e4c74410af69ef8d176c664983471d98794 (diff)
downloadphp-git-b3cfeda3c783d681452bfa80543c469dee92a5f8.tar.gz
improve test clean section
-rw-r--r--ext/opcache/tests/bug78185.phpt5
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--