]> granicus.if.org Git - php/commitdiff
Allow Elizabeth's favourite function to accept 2-4 sets of digits in version.
authorSteph Fox <sfox@php.net>
Thu, 20 Mar 2008 15:03:20 +0000 (15:03 +0000)
committerSteph Fox <sfox@php.net>
Thu, 20 Mar 2008 15:03:20 +0000 (15:03 +0000)
win32/build/config.w32

index 6841f435e6f46a7c6c0b6de74b3fc3e2c29907d4..6b4e1736cd7c03497d61f9e73bd2e51d8bf76139 100644 (file)
@@ -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;
                }
        }