File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -820,7 +820,7 @@ int zend_startup(zend_utility_functions *utility_functions) /* {{{ */
820
820
/* Set up utility functions and values */
821
821
zend_error_cb = utility_functions -> error_function ;
822
822
zend_printf = utility_functions -> printf_function ;
823
- zend_write = ( zend_write_func_t ) utility_functions -> write_function ;
823
+ zend_write = utility_functions -> write_function ;
824
824
zend_fopen = utility_functions -> fopen_function ;
825
825
if (!zend_fopen ) {
826
826
zend_fopen = zend_fopen_wrapper ;
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ typedef struct _zend_utility_values {
205
205
zend_bool html_errors ;
206
206
} zend_utility_values ;
207
207
208
- typedef int (* zend_write_func_t )(const char * str , size_t str_length );
208
+ typedef size_t (* zend_write_func_t )(const char * str , size_t str_length );
209
209
210
210
#define zend_bailout () _zend_bailout(__FILE__, __LINE__)
211
211
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ opcache.jit=0
17
17
<?php
18
18
require_once ('utils.inc ' );
19
19
$ zend = FFI ::cdef ("
20
- typedef int (*zend_write_func_t)(const char *str, size_t str_length);
20
+ typedef size_t (*zend_write_func_t)(const char *str, size_t str_length);
21
21
extern zend_write_func_t zend_write;
22
22
" , ffi_get_php_dll_name ());
23
23
You can’t perform that action at this time.
0 commit comments