mirror of
https://github.com/php/php-src.git
synced 2025-01-09 20:44:33 +08:00
Merge branch 'PHP-7.4'
* PHP-7.4: fix test for Windows and for parallel run
This commit is contained in:
commit
50978128f5
@ -7,13 +7,23 @@ opcache.file_cache={PWD}
|
||||
opcache.file_cache_only=1
|
||||
--FILE--
|
||||
<?php
|
||||
foreach (glob(__DIR__ . '/*/' . __DIR__ . '/*.bin') as $p) {
|
||||
if (substr(PHP_OS, 0, 3) !== 'WIN') {
|
||||
$pattern = __DIR__ . '/*/' . __DIR__ . '/*78185.php.bin';
|
||||
} else {
|
||||
$pattern = __DIR__ . '/*/*/' . str_replace(':', '', __DIR__) . '/*78185.php.bin';
|
||||
}
|
||||
foreach (glob($pattern) as $p) {
|
||||
var_dump($p);
|
||||
}
|
||||
?>
|
||||
--CLEAN--
|
||||
<?php
|
||||
foreach (glob(__DIR__ . '/*/' . __DIR__ . '/*.bin') as $p) {
|
||||
if (substr(PHP_OS, 0, 3) !== 'WIN') {
|
||||
$pattern = __DIR__ . '/*/' . __DIR__ . '/*78185.php.bin';
|
||||
} else {
|
||||
$pattern = __DIR__ . '/*/*/' . str_replace(':', '', __DIR__) . '/*78185.php.bin';
|
||||
}
|
||||
foreach (glob($pattern) as $p) {
|
||||
unlink($p);
|
||||
$p = dirname($p);
|
||||
while(strlen($p) > strlen(__DIR__)) {
|
||||
|
Loading…
Reference in New Issue
Block a user