diff options
Diffstat (limited to 'main')
| -rw-r--r-- | main/SAPI.h | 3 | ||||
| -rw-r--r-- | main/main.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/main/SAPI.h b/main/SAPI.h index 48f001200c..e9e17589a8 100644 --- a/main/SAPI.h +++ b/main/SAPI.h @@ -158,6 +158,9 @@ struct _sapi_module_struct { void (*register_server_variables)(zval *track_vars_array ELS_DC SLS_DC PLS_DC); void (*log_message)(char *message); + void (*block_interruptions)(void); + void (*unblock_interruptions)(void); + void (*default_post_reader)(char *content_type_dup SLS_DC); }; diff --git a/main/main.c b/main/main.c index 8d70d52437..089fe367bf 100644 --- a/main/main.c +++ b/main/main.c @@ -815,8 +815,8 @@ int php_module_startup(sapi_module_struct *sf) zuf.write_function = php_body_write_wrapper; zuf.fopen_function = php_fopen_wrapper_for_zend; zuf.message_handler = php_message_handler_for_zend; - zuf.block_interruptions = BLOCK_INTERRUPTIONS; - zuf.unblock_interruptions = UNBLOCK_INTERRUPTIONS; + zuf.block_interruptions = sapi_module.block_interruptions; + zuf.unblock_interruptions = sapi_module.unblock_interruptions; zuf.get_ini_entry = php_get_ini_entry_for_zend; zuf.ticks_function = NULL; zend_startup(&zuf, NULL); |
