Browse Source

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.
pull/90/head
Anatoliy Belsky 14 years ago
parent
commit
81ba6b14c7
  1. 2
      win32/build/mkdist.php

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);
}

Loading…
Cancel
Save