Skip to content

Commit 81ba6b1

Browse files
committed
Fix bug #61990 ext\spl\examples\tests\dualiterator_001.phpt fails
This fixes a general issue. In this ticket and not for the first time is being seen, that people are trying to use data from "examples" in the tests. When extracting a test pack only "tests" and its siblings was taken into account. Now "examples" are copied as well.
1 parent 266578f commit 81ba6b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win32/build/mkdist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ function copy_test_dir($directory, $dest)
401401
while (FALSE !== ($file = readdir($directory_list))) {
402402
$full_path = $directory . '/' . $file;
403403
if($file != '.' && $file != '..' && $file != '.svn' && is_dir($full_path)) {
404-
if ($file == 'tests') {
404+
if ($file == 'tests' || $file == 'examples') {
405405
if (!is_dir($dest . '/' . $full_path)) {
406406
mkdir($dest . '/' . $full_path , 0775, true);
407407
}

0 commit comments

Comments
 (0)