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

index f59bac716bf38d0e9d258e64549b5abb50233ca6..392cfd4746b87817a146c79eaf7f85acd47e738b 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 {