mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-31 12:43:14 +00:00
Reset lower version numbers when incrementing versions
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user