cvs: php-src(PHP_5_3) /ext/pcre upgrade-pcre.php
| From: | Nuno Lopes | Date: | Mon, 14 Jan 2008 09:40:29 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/pcre upgrade-pcre.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-47827@lists.php.net to get a copy of this message | ||
nlopess Mon Jan 14 09:40:29 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/pcre upgrade-pcre.php
Log:
MFB5.2: fix script for files with short names
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/upgrade-pcre.php?r1=1.1.2.3&r2=1.1.2.3.2.1&diff_format=u
Index: php-src/ext/pcre/upgrade-pcre.php
diff -u php-src/ext/pcre/upgrade-pcre.php:1.1.2.3 php-src/ext/pcre/upgrade-pcre.php:1.1.2.3.2.1
--- php-src/ext/pcre/upgrade-pcre.php:1.1.2.3 Tue Sep 11 16:17:33 2007
+++ php-src/ext/pcre/upgrade-pcre.php Mon Jan 14 09:40:29 2008
@@ -37,9 +37,9 @@
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";