From: Ilia Alshanetsky Date: Wed, 2 Jan 2008 19:20:15 +0000 (+0000) Subject: MFB: Fixed bug #43647 (Make FindFile use PATH_SEPARATOR instead of ";") X-Git-Tag: php-5.2.6RC1~200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02967f7040f493192b71908a5dc47f83e6a18531;p=php MFB: Fixed bug #43647 (Make FindFile use PATH_SEPARATOR instead of ";") --- diff --git a/NEWS b/NEWS index e2b5a88738..403b62902a 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ PHP NEWS - Fixed bug #43663 (Extending PDO class with a __call() function doesn't work). (David Soria Parra) +- Fixed bug #43647 (Make FindFile use PATH_SEPARATOR instead of ";"). (Ilia) - Fixed bug #43635 (mysql extension ingores INI settings on NULL values passed to mysql_connect()). (Ilia) - Fixed bug #43620 (Workaround for a bug inside libcurl 7.16.2 that can result diff --git a/ext/spl/examples/findfile.inc b/ext/spl/examples/findfile.inc index 05d525a3fb..02ab792433 100755 --- a/ext/spl/examples/findfile.inc +++ b/ext/spl/examples/findfile.inc @@ -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 {