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.h | |
| 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.h')
| -rw-r--r-- | src/sp_disabled_functions.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sp_disabled_functions.h b/src/sp_disabled_functions.h index baf40dd..fd9b9b9 100644 --- a/src/sp_disabled_functions.h +++ b/src/sp_disabled_functions.h | |||
| @@ -3,8 +3,12 @@ | |||
| 3 | 3 | ||
| 4 | extern zend_write_func_t zend_write_default; | 4 | extern zend_write_func_t zend_write_default; |
| 5 | 5 | ||
| 6 | int hook_disabled_functions(void); | 6 | #if PHP_VERSION_ID >= 80000 |
| 7 | size_t hook_echo(const char *, size_t); | ||
| 8 | #else | ||
| 7 | int hook_echo(const char *, size_t); | 9 | int hook_echo(const char *, size_t); |
| 10 | #endif | ||
| 11 | int hook_disabled_functions(void); | ||
| 8 | void should_disable_ht(zend_execute_data *, const char *, const zend_string *, | 12 | void should_disable_ht(zend_execute_data *, const char *, const zend_string *, |
| 9 | const char *, const sp_list_node *, const HashTable *); | 13 | const char *, const sp_list_node *, const HashTable *); |
| 10 | void should_drop_on_ret_ht(const zval *, const char *, | 14 | void should_drop_on_ret_ht(const zval *, const char *, |
