com php-src: Avoid concurrent directory writes in FilesystemIterator test: ext/spl/tests/dit_005.phpt

From: Date: Wed, 05 Jun 2019 07:58:59 +0000
Subject: com php-src: Avoid concurrent directory writes in FilesystemIterator test: ext/spl/tests/dit_005.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106561@lists.php.net to get a copy of this message
Commit: 46d5a9bef9d4da8c845506beba492134a133851a Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 5 Jun 2019 09:58:59 +0200 Parents: cb9bb146d96e822db8bf0f84b3acf1132551250e Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=46d5a9bef9d4da8c845506beba492134a133851a Log: Avoid concurrent directory writes in FilesystemIterator test The test directory is often used for temporary files, let's use the source directory, which should be more stable. If that doesn't work we need to create a temporary directory. Changed paths: M ext/spl/tests/dit_005.phpt Diff: diff --git a/ext/spl/tests/dit_005.phpt b/ext/spl/tests/dit_005.phpt index 9278a11...942a58d 100644 --- a/ext/spl/tests/dit_005.phpt +++ b/ext/spl/tests/dit_005.phpt @@ -2,7 +2,8 @@ SPL: FilesystemIterator and clone --FILE-- <?php -$a = new FileSystemIterator(__DIR__); +// Let's hope nobody writes into this directory while testing... +$a = new FileSystemIterator(__DIR__ . '/..'); $b = clone $a; var_dump((string)$b == (string)$a); var_dump($a->key() == $b->key());

« previous php.cvs (#106561) next »