]> granicus.if.org Git - php/commitdiff
MFB5.2: fix script for files with short names
authorNuno Lopes <nlopess@php.net>
Mon, 14 Jan 2008 09:40:53 +0000 (09:40 +0000)
committerNuno Lopes <nlopess@php.net>
Mon, 14 Jan 2008 09:40:53 +0000 (09:40 +0000)
ext/pcre/upgrade-pcre.php

index dd0a8a783a1a11d7b3a77141a65242047a639c5d..43a98c94be7ebec58bc8da183d0685ea259cb551 100644 (file)
@@ -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";