]> granicus.if.org Git - php/commitdiff
improve test clean section
authorRemi Collet <remi@php.net>
Thu, 20 Jun 2019 09:51:18 +0000 (11:51 +0200)
committerRemi Collet <remi@php.net>
Thu, 20 Jun 2019 09:51:18 +0000 (11:51 +0200)
ext/opcache/tests/bug78185.phpt

index cd96cf848cb76ba91c2f9e4ef458fbc359de2420..4be84316414af314ae87973b7d205032ee9486f2 100644 (file)
@@ -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--