Skip to content

Commit

Permalink
Fix compatibility with PHP 8.0 beta4
Browse files Browse the repository at this point in the history
  • Loading branch information
andypost committed Sep 17, 2020
1 parent 799fcd7 commit 3db6053
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions extension/php_xhprof.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down
2 changes: 1 addition & 1 deletion extension/xhprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 3db6053

Please sign in to comment.