diff options
| author | jvoisin | 2020-11-29 20:46:48 +0100 |
|---|---|---|
| committer | jvoisin | 2020-11-29 20:46:48 +0100 |
| commit | 69719e42994c0e42ae45124acef7835955a5272d (patch) | |
| tree | 094a7f10b7274b0525c30be4caaa4f253e6df2be /src/sp_disabled_functions.c | |
| parent | ea7c76bce6a4704db867210acfad7cab73106ef2 (diff) | |
Fix zend_write booking type
The signature was changed in PHP8: https://github.com/php/php-src/commit/e15409b43cacf711608189c299191f2969ea331c
Diffstat (limited to 'src/sp_disabled_functions.c')
| -rw-r--r-- | src/sp_disabled_functions.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) { | |||
| 626 | 626 | ||
| 627 | zend_write_func_t zend_write_default = NULL; | 627 | zend_write_func_t zend_write_default = NULL; |
| 628 | 628 | ||
| 629 | #if PHP_VERSION_ID >= 80000 | ||
| 630 | size_t hook_echo(const char* str, size_t str_length) { | ||
| 631 | #else | ||
| 629 | int hook_echo(const char* str, size_t str_length) { | 632 | int hook_echo(const char* str, size_t str_length) { |
| 633 | #endif | ||
| 630 | zend_string* zs = zend_string_init(str, str_length, 0); | 634 | zend_string* zs = zend_string_init(str, str_length, 0); |
| 631 | 635 | ||
| 632 | should_disable_ht( | 636 | should_disable_ht( |
