From 3db6053ac7833880ec511e1ed5edc765626cb9e5 Mon Sep 17 00:00:00 2001 From: Andy Postnikov Date: Fri, 18 Sep 2020 00:07:25 +0300 Subject: [PATCH] Fix compatibility with PHP 8.0 beta4 --- extension/php_xhprof.h | 4 ++-- extension/xhprof.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extension/php_xhprof.h b/extension/php_xhprof.h index fc518229..3360e779 100755 --- a/extension/php_xhprof.h +++ b/extension/php_xhprof.h @@ -193,8 +193,8 @@ ZEND_DLEXPORT zend_op_array* hp_compile_file(zend_file_handle *file_handle, int static zend_op_array * (*_zend_compile_string) (zval *source_string, char *filename); ZEND_DLEXPORT zend_op_array* hp_compile_string(zval *source_string, char *filename); #else -static zend_op_array * (*_zend_compile_string) (zval *source_string, const char *filename); -ZEND_DLEXPORT zend_op_array* hp_compile_string(zval *source_string, const char *filename); +static zend_op_array * (*_zend_compile_string) (zend_string *source_string, const char *filename); +ZEND_DLEXPORT zend_op_array* hp_compile_string(zend_string *source_string, const char *filename); #endif /** diff --git a/extension/xhprof.c b/extension/xhprof.c index f7861517..d3eea0f6 100755 --- a/extension/xhprof.c +++ b/extension/xhprof.c @@ -1229,7 +1229,7 @@ ZEND_DLEXPORT zend_op_array* hp_compile_file(zend_file_handle *file_handle, int #if PHP_VERSION_ID < 80000 ZEND_DLEXPORT zend_op_array* hp_compile_string(zval *source_string, char *filename) #else -ZEND_DLEXPORT zend_op_array* hp_compile_string(zval *source_string, const char *filename) +ZEND_DLEXPORT zend_op_array* hp_compile_string(zend_string *source_string, const char *filename) #endif { if (!XHPROF_G(enabled)) {