From c016fa1a7ce11e657f215dd69deac59d973d6dd9 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 10 Dec 2022 11:36:04 +0100 Subject: Even more changes to accomodate PHP8.2 --- src/sp_execute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sp_execute.c') diff --git a/src/sp_execute.c b/src/sp_execute.c index 84f6275..300d05c 100644 --- a/src/sp_execute.c +++ b/src/sp_execute.c @@ -336,7 +336,7 @@ static zend_result sp_stream_open(zend_file_handle *handle) { ZEND_API zend_op_array* (*orig_zend_compile_file)(zend_file_handle* file_handle, int type) = NULL; -#if PHP_VERSION_ID >= 82000 +#if PHP_VERSION_ID >= 80200 ZEND_API zend_op_array* (*orig_zend_compile_string)( zend_string* source_string, const char* filename, enum _zend_compile_position position) = NULL; @@ -348,7 +348,7 @@ ZEND_API zend_op_array* (*orig_zend_compile_string)(zval* source_string, char* filename) = NULL; #endif -#if PHP_VERSION_ID >= 82000 +#if PHP_VERSION_ID >= 80200 ZEND_API zend_op_array* sp_compile_string(zend_string* source_string, const char* filename, enum _zend_compile_position position) { @@ -361,7 +361,7 @@ ZEND_API zend_op_array* sp_compile_string(zval* source_string, char* filename) { // TODO(jvoisin) handle recursive calls to `eval` SPG(eval_source_string) = source_string; zend_op_array* opline = orig_zend_compile_string(source_string, filename -#if PHP_VERSION_ID >= 82000 +#if PHP_VERSION_ID >= 80200 , position #endif ); -- cgit v1.3