From: Nikita Popov Date: Mon, 26 Oct 2020 08:25:38 +0000 (+0100) Subject: Use separate directory in dit_004.phpt X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0535872b7cd50be8b40ad06154b287749315eb27;p=php Use separate directory in dit_004.phpt Make sure the directory is not modified while we're iterating it, which may give unstable results. --- diff --git a/ext/spl/tests/dit_004.phpt b/ext/spl/tests/dit_004.phpt index 9d7069e525..c54d4bf3c0 100644 --- a/ext/spl/tests/dit_004.phpt +++ b/ext/spl/tests/dit_004.phpt @@ -2,7 +2,13 @@ SPL: DirectoryIterator and clone --FILE-- key(), $b->key()); @@ -13,6 +19,14 @@ $c = clone $a; var_dump((string)$c == (string)$a); var_dump($a->key(), $c->key()); ?> +--CLEAN-- + --EXPECT-- bool(true) int(0)