mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-17 17:47:12 +00:00
mark release as stable and updates php requirement (#94)
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<dependencies>
|
<dependencies>
|
||||||
<required>
|
<required>
|
||||||
<php>
|
<php>
|
||||||
<min>7.4.0</min>
|
<min>5.5.0</min>
|
||||||
</php>
|
</php>
|
||||||
<pearinstaller>
|
<pearinstaller>
|
||||||
<min>1.10.0</min>
|
<min>1.10.0</min>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<api>1.0.0</api>
|
<api>1.0.0</api>
|
||||||
</version>
|
</version>
|
||||||
<stability>
|
<stability>
|
||||||
<release>devel</release>
|
<release>stable</release>
|
||||||
<api>stable</api>
|
<api>stable</api>
|
||||||
</stability>
|
</stability>
|
||||||
<license uri="https://www.apache.org/licenses/LICENSE-2.0">Apache License Version 2.0</license>
|
<license uri="https://www.apache.org/licenses/LICENSE-2.0">Apache License Version 2.0</license>
|
||||||
|
|||||||
@@ -47,14 +47,20 @@ os.chdir(WORK_DIR)
|
|||||||
|
|
||||||
run(['git', 'submodule', 'update', '--init', '--recursive'])
|
run(['git', 'submodule', 'update', '--init', '--recursive'])
|
||||||
|
|
||||||
# replace the version number in the ext/crt.c file
|
# replace the version number in the file_with_version
|
||||||
data = ""
|
data = ""
|
||||||
with open("ext/crt.c", "r") as c_file:
|
file_with_version = "ext/php_aws_crt.h"
|
||||||
|
with open(file_with_version, "r") as c_file:
|
||||||
for line in c_file:
|
for line in c_file:
|
||||||
line = re.sub("#define CRT_VERSION .*",
|
if "define PHP_AWSCRT_VERSION" in line:
|
||||||
f"#define CRT_VERSION \"{VERSION}\"", line)
|
line = re.sub("define PHP_AWSCRT_VERSION .*",
|
||||||
|
f"define PHP_AWSCRT_VERSION \"{VERSION}\"", line)
|
||||||
|
if VERSION not in line:
|
||||||
|
sys.exit(
|
||||||
|
f"check {file_with_version}, the version number was not updated correctly.")
|
||||||
data += line
|
data += line
|
||||||
with open("ext/crt.c", "w") as c_file:
|
|
||||||
|
with open(file_with_version, "w") as c_file:
|
||||||
c_file.write(data)
|
c_file.write(data)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -263,8 +263,6 @@ static PHP_GINIT_FUNCTION(awscrt) {
|
|||||||
awscrt_globals->log_level = 0;
|
awscrt_globals->log_level = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define CRT_VERSION "1.0.4"
|
|
||||||
|
|
||||||
zend_module_entry awscrt_module_entry = {
|
zend_module_entry awscrt_module_entry = {
|
||||||
STANDARD_MODULE_HEADER,
|
STANDARD_MODULE_HEADER,
|
||||||
"awscrt",
|
"awscrt",
|
||||||
@@ -274,7 +272,7 @@ zend_module_entry awscrt_module_entry = {
|
|||||||
NULL, /* RINIT */
|
NULL, /* RINIT */
|
||||||
NULL, /* RSHUTDOWN */
|
NULL, /* RSHUTDOWN */
|
||||||
NULL, /* MINFO */
|
NULL, /* MINFO */
|
||||||
CRT_VERSION,
|
PHP_AWSCRT_VERSION,
|
||||||
PHP_MODULE_GLOBALS(awscrt),
|
PHP_MODULE_GLOBALS(awscrt),
|
||||||
PHP_GINIT(awscrt),
|
PHP_GINIT(awscrt),
|
||||||
NULL, /* GSHUTDOWN */
|
NULL, /* GSHUTDOWN */
|
||||||
|
|||||||
@@ -37,6 +37,8 @@
|
|||||||
#define AWS_PHP_AT_LEAST_7 (ZEND_EXTENSION_API_NO >= AWS_PHP_EXTENSION_API_7_0)
|
#define AWS_PHP_AT_LEAST_7 (ZEND_EXTENSION_API_NO >= AWS_PHP_EXTENSION_API_7_0)
|
||||||
#define AWS_PHP_AT_LEAST_7_2 (ZEND_EXTENSION_API_NO >= AWS_PHP_EXTENSION_API_7_2)
|
#define AWS_PHP_AT_LEAST_7_2 (ZEND_EXTENSION_API_NO >= AWS_PHP_EXTENSION_API_7_2)
|
||||||
|
|
||||||
|
#define PHP_AWSCRT_VERSION "1.1.0"
|
||||||
|
|
||||||
ZEND_BEGIN_MODULE_GLOBALS(awscrt)
|
ZEND_BEGIN_MODULE_GLOBALS(awscrt)
|
||||||
long log_level;
|
long log_level;
|
||||||
ZEND_END_MODULE_GLOBALS(awscrt)
|
ZEND_END_MODULE_GLOBALS(awscrt)
|
||||||
|
|||||||
Reference in New Issue
Block a user