From 69719e42994c0e42ae45124acef7835955a5272d Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 29 Nov 2020 20:46:48 +0100 Subject: Fix zend_write booking type The signature was changed in PHP8: https://github.com/php/php-src/commit/e15409b43cacf711608189c299191f2969ea331c --- src/sp_disabled_functions.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sp_disabled_functions.c') diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c index 7e6ca6a..c5ea437 100644 --- a/src/sp_disabled_functions.c +++ b/src/sp_disabled_functions.c @@ -626,7 +626,11 @@ int hook_disabled_functions(void) { zend_write_func_t zend_write_default = NULL; +#if PHP_VERSION_ID >= 80000 +size_t hook_echo(const char* str, size_t str_length) { +#else int hook_echo(const char* str, size_t str_length) { +#endif zend_string* zs = zend_string_init(str, str_length, 0); should_disable_ht( -- cgit v1.3