From: Nuno Lopes Date: Mon, 14 Jan 2008 09:40:53 +0000 (+0000) Subject: MFB5.2: fix script for files with short names X-Git-Tag: RELEASE_2_0_0a1~905 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4592c892c66753e7b937fd1b3a03198aa93a372d;p=php MFB5.2: fix script for files with short names --- diff --git a/ext/pcre/upgrade-pcre.php b/ext/pcre/upgrade-pcre.php index dd0a8a783a..43a98c94be 100644 --- a/ext/pcre/upgrade-pcre.php +++ b/ext/pcre/upgrade-pcre.php @@ -37,9 +37,9 @@ function recurse($path) if ($file[0] === '.' || $file === 'CVS' || - substr_compare($file, '.lo', -3, 3) == 0 || - substr_compare($file, '.loT', -4, 4) == 0 || - substr_compare($file, '.o', -2, 2) == 0) continue; + @substr_compare($file, '.lo', -3, 3) === 0 || + @substr_compare($file, '.loT', -4, 4) === 0 || + @substr_compare($file, '.o', -2, 2) === 0) continue; $file = "$path/$file";