From: Steph Fox Date: Thu, 20 Mar 2008 15:03:20 +0000 (+0000) Subject: Allow Elizabeth's favourite function to accept 2-4 sets of digits in version. X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~512 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b72b4ce87e7e367cf6ff4326c53ee6f81031d454;p=php Allow Elizabeth's favourite function to accept 2-4 sets of digits in version. --- diff --git a/win32/build/config.w32 b/win32/build/config.w32 index 6841f435e6..6b4e1736cd 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -23,7 +23,7 @@ function probe_binary(EXE, what) return 1; } } else { - if (version.match(/(\d+\.\d+\.\d+(\.\d+)?)/)) { + if (version.match(/(\d+\.\d+(\.\d+)?(\.\d+)?)/)) { return RegExp.$1; } }