@@ -50,9 +50,9 @@ extern zend_module_entry php_v8_module_entry;
50
50
#define PHP_V8_LIBV8_VERSION "undefined"
51
51
#endif
52
52
53
- #if PHP_VERSION_ID < 70100
53
+ #if PHP_VERSION_ID < 70200
54
54
// should never get her, but just in case
55
- #error PHP >= 7.1 required
55
+ #error PHP >= 7.2 required
56
56
#endif
57
57
58
58
@@ -61,20 +61,11 @@ ZEND_BEGIN_MODULE_GLOBALS(v8)
61
61
v8 ::Platform * platform ;
62
62
ZEND_END_MODULE_GLOBALS (v8 )
63
63
64
- // Add zend_type support (new since PHP 7.2)
65
- #ifdef ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX
66
- #define PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX (name , return_reference , required_num_args , classname , allow_null ) \
67
- ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(name, return_reference, required_num_args, classname, allow_null)
64
+ #define PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX (name , return_reference , required_num_args , classname , allow_null ) \
65
+ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(name, return_reference, required_num_args, classname, allow_null)
68
66
69
- #define PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (name , return_reference , required_num_args , type , allow_null ) \
70
- ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
71
- #else
72
- #define PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX (name , return_reference , required_num_args , classname , allow_null ) \
73
- ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, IS_OBJECT, #classname, allow_null)
74
-
75
- #define PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (name , return_reference , required_num_args , type , allow_null ) \
76
- ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, NULL, allow_null)
77
- #endif
67
+ #define PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (name , return_reference , required_num_args , type , allow_null ) \
68
+ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
78
69
79
70
#define PHP_V8_ZEND_BEGIN_ARG_WITH_CONSTRUCTOR_INFO_EX (name , required_num_args ) ZEND_BEGIN_ARG_INFO_EX(name, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, required_num_args)
80
71
#define PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_VOID_INFO_EX (name , required_num_args ) ZEND_BEGIN_ARG_INFO_EX(name, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, required_num_args)
0 commit comments