summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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--