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

From: Date: Thu, 20 Jun 2019 10:24:05 +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-106944@lists.php.net to get a copy of this message
Commit: 4f40d81b8d32575d4ddf30109eb05d2b093b6301 Author: Remi Collet <remi@php.net> Thu, 20 Jun 2019 11:51:18 +0200 Committer: Christoph M. Becker <cmbecker69@gmx.de> Thu, 20 Jun 2019 12:24:05 +0200 Parents: e1dc9d6c1ea7dd6f3032fbe5c89c02b60c237d8b Branches: PHP-7.3.7 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4f40d81b8d32575d4ddf30109eb05d2b093b6301 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 (#106944) next »