com php-src: improve test clean section: ext/opcache/tests/bug78185.phpt

From: Date: Thu, 20 Jun 2019 12:20:38 +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-106948@lists.php.net to get a copy of this message
Commit: c12dc24699ebc94ce206b195959e9eb04efc0ebf Author: Remi Collet <remi@php.net> Thu, 20 Jun 2019 11:51:18 +0200 Parents: e3ee3135fd70aec16a89251bfc1134da3c859bd8 Branches: PHP-7.2.20 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c12dc24699ebc94ce206b195959e9eb04efc0ebf Log: improve test clean section (cherry picked from commit b3cfeda3c783d681452bfa80543c469dee92a5f8) 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--

« previous php.cvs (#106948) next »