Commit:    293283e25cd4eb34c48c765faf8019e2aa345e74
Author:    Adam Harvey <[email protected]>         Tue, 30 Sep 2014 17:20:42 -0700
Parents:   3edeb8f2e73cd31b4480fbbf3d3811d80a2608c1
Branches:  master

Link:       
http://git.php.net/?p=web/bugs.git;a=commitdiff;h=293283e25cd4eb34c48c765faf8019e2aa345e74

Log:
Handle version components of more than one digit in report.php.

Changed paths:
  M  include/php_versions.php


Diff:
diff --git a/include/php_versions.php b/include/php_versions.php
index 363d98b..38fc9f5 100644
--- a/include/php_versions.php
+++ b/include/php_versions.php
@@ -92,7 +92,7 @@
        function parseVersion($version){
                $version_parts  = array();
                $raw_parts      = array();
-               
preg_match('#(?P<major>\d)\.(?P<minor>\d).(?P<micro>\d)[-]?(?P<type>RC|alpha|beta|dev)?(?P<number>[\d]?).*#ui',
 $version, $raw_parts);
+               
preg_match('#(?P<major>\d+)\.(?P<minor>\d+).(?P<micro>\d+)[-]?(?P<type>RC|alpha|beta|dev)?(?P<number>[\d]?).*#ui',
 $version, $raw_parts);
                $version_parts = array(
                        'major'                 => $raw_parts['major'],
                        'minor'                 => $raw_parts['minor'],


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to