sfox Mon Mar 24 15:11:46 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/win32/build confutils.js
Log:
Another thing version_compare() allows...
http://cvs.php.net/viewvc.cgi/php-src/win32/build/confutils.js?r1=1.60.2.1.2.8.2.7&r2=1.60.2.1.2.8.2.8&diff_format=u
Index: php-src/win32/build/confutils.js
diff -u php-src/win32/build/confutils.js:1.60.2.1.2.8.2.7
php-src/win32/build/confutils.js:1.60.2.1.2.8.2.8
--- php-src/win32/build/confutils.js:1.60.2.1.2.8.2.7 Sun Mar 23 21:59:31 2008
+++ php-src/win32/build/confutils.js Mon Mar 24 15:11:46 2008
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-// $Id: confutils.js,v 1.60.2.1.2.8.2.7 2008/03/23 21:59:31 sfox Exp $
+// $Id: confutils.js,v 1.60.2.1.2.8.2.8 2008/03/24 15:11:46 sfox Exp $
var STDOUT = WScript.StdOut;
var STDERR = WScript.StdErr;
@@ -878,7 +878,7 @@
if (header = FSO.OpenTextFile(project_header, 1)) {
contents = header.ReadAll();
/* allowed: x.x.x[a|b|-alpha|-beta][RCx][-dev]
*/
- if (contents.match(new RegExp('PHP_' +
basename.toUpperCase() +
'_VERSION(\\s+)"((\\d+\.\\d+(\.\\d+)?)((a|b)\\d|\-[a-z]{3,5})?(RC\\d+)?(\-dev)?)')))
{
+ if (contents.match(new RegExp('PHP_' +
basename.toUpperCase() +
'_VERSION(\\s+)"((\\d+\.\\d+(\.\\d+)?)((a|b)(\\d)?|\-[a-z]{3,5})?(RC\\d+)?(\-dev)?)')))
{
project_version = RegExp.$2;
file_version = RegExp.$3.split('.');
if (!file_version[2]) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php