Browse files

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.
  • Loading branch information...
1 parent 266578f commit 81ba6b14c7b1b934f4d3e2896f861a42b07aa838 @weltling weltling committed May 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 win32/build/mkdist.php
View
2 win32/build/mkdist.php
@@ -401,7 +401,7 @@ function copy_test_dir($directory, $dest)
while (FALSE !== ($file = readdir($directory_list))) {
$full_path = $directory . '/' . $file;
if($file != '.' && $file != '..' && $file != '.svn' && is_dir($full_path)) {
- if ($file == 'tests') {
+ if ($file == 'tests' || $file == 'examples') {
if (!is_dir($dest . '/' . $full_path)) {
mkdir($dest . '/' . $full_path , 0775, true);
}

0 comments on commit 81ba6b1

Please sign in to comment.