From b55c2beca1569b4ee686247f8a607a44a01ab802 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 17 Mar 2023 08:43:55 +0100 Subject: fix https://github.com/awslabs/aws-crt-php/issues/95 PHP 5.x compatibility using patch from https://github.com/awslabs/aws-crt-php/pull/96 --- 0001-fix-95-compatibility-with-PHP-5.x.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 0001-fix-95-compatibility-with-PHP-5.x.patch (limited to '0001-fix-95-compatibility-with-PHP-5.x.patch') diff --git a/0001-fix-95-compatibility-with-PHP-5.x.patch b/0001-fix-95-compatibility-with-PHP-5.x.patch new file mode 100644 index 0000000..7865033 --- /dev/null +++ b/0001-fix-95-compatibility-with-PHP-5.x.patch @@ -0,0 +1,24 @@ +From 8a74a146b73f60bb2497ab313fe2db0bb3937597 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Fri, 17 Mar 2023 08:34:21 +0100 +Subject: [PATCH] fix #95 compatibility with PHP 5.x + +--- + ext/php_aws_crt.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/ext/php_aws_crt.h b/ext/php_aws_crt.h +index 68951c1..a1fd37c 100644 +--- a/ext/php_aws_crt.h ++++ b/ext/php_aws_crt.h +@@ -60,6 +60,7 @@ ZEND_EXTERN_MODULE_GLOBALS(awscrt) + # define XRETURN_STRING(s) RETURN_STRING(s, 1) + # define XRETVAL_STRINGL(s, l) RETVAL_STRINGL(s, l, 1) + # define XRETVAL_STRING(s) RETVAL_STRING(s, 1) ++# define zend_error_noreturn zend_error + #endif /* PHP 5.x */ + + #include "api.h" +-- +2.39.2 + -- cgit