]> granicus.if.org Git - php/commitdiff
Fixed bug #43647 (Make FindFile use PATH_SEPARATOR instead of ";")
authorIlia Alshanetsky <iliaa@php.net>
Wed, 2 Jan 2008 19:19:31 +0000 (19:19 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 2 Jan 2008 19:19:31 +0000 (19:19 +0000)
ext/spl/examples/findfile.inc

index 05d525a3fbd6c238ed956f6f0241d2eaa98f3e0a..02ab792433536197056863d41091d9fd58b07294 100755 (executable)
@@ -33,7 +33,7 @@ class FindFile extends FilterIterator
        function __construct($path, $file)
        {
                $this->file = $file;
-               $list = split(';', $path);
+               $list = split(PATH_SEPARATOR, $path);
                if (count($list) <= 1) {
                        parent::__construct(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)));
                } else {