com web/bugs: Handle version components of more than one digit in report.php.: include/php_versions.php

From: Date: Wed, 01 Oct 2014 00:20:42 +0000
Subject: com web/bugs: Handle version components of more than one digit in report.php.: include/php_versions.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-20008@lists.php.net to get a copy of this message
Commit: 293283e25cd4eb34c48c765faf8019e2aa345e74 Author: Adam Harvey <aharvey@php.net> 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'],

« previous php.webmaster (#20008) next »