[Replicate] compatibility with PHP 5.x (#97)

original: https://github.com/awslabs/aws-crt-php/pull/96

- Make sure run the test... Run the test for php5.5
- Add readme section about the mismatch of libcrypto from php and awscrt. 

---------

Co-authored-by: Remi Collet <[email protected]>
This commit is contained in:
Dengke Tang
2023-03-24 13:22:19 -07:00
committed by GitHub
co-authored by Remi Collet
parent ed3f8ca16d
commit 1926277fc7
4 changed files with 31 additions and 10 deletions
+2
View File
@@ -60,6 +60,8 @@ 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)
/* zend_error_noreturn is not public until PHP7, but may still be visible with some PHP 5.X distributions */
# define zend_error_noreturn zend_error
#endif /* PHP 5.x */
#include "api.h"