Skip to content

Commit

Permalink
Fix bug #61990 ext\spl\examples\tests\dualiterator_001.phpt fails
Browse files Browse the repository at this point in the history
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
weltling committed May 11, 2012
1 parent 266578f commit 81ba6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win32/build/mkdist.php
Expand Up @@ -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);
}
Expand Down

0 comments on commit 81ba6b1

Please sign in to comment.