Commit:    81ba6b14c7b1b934f4d3e2896f861a42b07aa838
Author:    Anatoliy Belsky <a...@php.net>         Fri, 11 May 2012 14:24:12 
+0200
Parents:   266578f58483a08d7af51714636564df36a926d0
Branches:  PHP-5.3 PHP-5.4 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=81ba6b14c7b1b934f4d3e2896f861a42b07aa838

Log:
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.

Bugs:
https://bugs.php.net/61990

Changed paths:
  M  win32/build/mkdist.php


Diff:
diff --git a/win32/build/mkdist.php b/win32/build/mkdist.php
index 17f7cd0..5ed9bdc 100644
--- a/win32/build/mkdist.php
+++ b/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);
                                }


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to