Reset lower version numbers when incrementing versions

This commit is contained in:
Zach Borboa
2015-09-03 18:08:57 -07:00
parent fad3524fad
commit 97cb91ef0c
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -3,8 +3,8 @@
require dirname(__FILE__) . '/../src/Curl/Curl.php';
$current_version = Curl\Curl::VERSION;
list($major, $minor, $patch) = explode('.', $current_version);
$new_version = implode('.', array((string)((int)$major += 1), $minor, $patch));
list($major, $_, $_) = explode('.', $current_version);
$new_version = implode('.', array((string)((int)$major += 1), '0', '0'));
foreach(
array(
+2 -2
View File
@@ -3,8 +3,8 @@
require dirname(__FILE__) . '/../src/Curl/Curl.php';
$current_version = Curl\Curl::VERSION;
list($major, $minor, $patch) = explode('.', $current_version);
$new_version = implode('.', array($major, (string)((int)$minor += 1), $patch));
list($major, $minor, $_) = explode('.', $current_version);
$new_version = implode('.', array($major, (string)((int)$minor += 1), '0'));
foreach(
array(