Skip to content

Commit 3abd9c3

Browse files
committed
Removed unused callbacks
1 parent 459965b commit 3abd9c3

File tree

5 files changed

+2
-19
lines changed

5 files changed

+2
-19
lines changed

Zend/zend.c

-6
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ ZEND_API size_t (*zend_printf)(const char *format, ...);
5151
ZEND_API zend_write_func_t zend_write;
5252
ZEND_API FILE *(*zend_fopen)(const char *filename, zend_string **opened_path);
5353
ZEND_API int (*zend_stream_open_function)(const char *filename, zend_file_handle *handle);
54-
ZEND_API void (*zend_block_interruptions)(void);
55-
ZEND_API void (*zend_unblock_interruptions)(void);
5654
ZEND_API void (*zend_ticks_function)(int ticks);
5755
ZEND_API void (*zend_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args);
5856
size_t (*zend_vspprintf)(char **pbuf, size_t max_len, const char *format, va_list ap);
@@ -676,10 +674,6 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions) /
676674
}
677675
zend_stream_open_function = utility_functions->stream_open_function;
678676
zend_message_dispatcher_p = utility_functions->message_handler;
679-
#ifndef ZEND_SIGNALS
680-
zend_block_interruptions = utility_functions->block_interruptions;
681-
zend_unblock_interruptions = utility_functions->unblock_interruptions;
682-
#endif
683677
zend_get_configuration_directive_p = utility_functions->get_configuration_directive;
684678
zend_ticks_function = utility_functions->ticks_function;
685679
zend_on_timeout = utility_functions->on_timeout;

Zend/zend.h

+2-6
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
/* block/unblock interruptions callbacks might be used by SAPI, and were used
5050
* by mod_php for Apache 1, but now they are not usefull anymore.
5151
*/
52-
# define HANDLE_BLOCK_INTERRUPTIONS() /*if (zend_block_interruptions) { zend_block_interruptions(); }*/
53-
# define HANDLE_UNBLOCK_INTERRUPTIONS() /*if (zend_unblock_interruptions) { zend_unblock_interruptions(); }*/
52+
# define HANDLE_BLOCK_INTERRUPTIONS()
53+
# define HANDLE_UNBLOCK_INTERRUPTIONS()
5454
#else
5555
# define HANDLE_BLOCK_INTERRUPTIONS() ZEND_SIGNAL_BLOCK_INTERRUPUTIONS()
5656
# define HANDLE_UNBLOCK_INTERRUPTIONS() ZEND_SIGNAL_UNBLOCK_INTERRUPTIONS()
@@ -194,8 +194,6 @@ typedef struct _zend_utility_functions {
194194
size_t (*write_function)(const char *str, size_t str_length);
195195
FILE *(*fopen_function)(const char *filename, zend_string **opened_path);
196196
void (*message_handler)(zend_long message, const void *data);
197-
void (*block_interruptions)(void);
198-
void (*unblock_interruptions)(void);
199197
zval *(*get_configuration_directive)(zend_string *name);
200198
void (*ticks_function)(int ticks);
201199
void (*on_timeout)(int seconds);
@@ -270,8 +268,6 @@ BEGIN_EXTERN_C()
270268
extern ZEND_API size_t (*zend_printf)(const char *format, ...) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 1, 2);
271269
extern ZEND_API zend_write_func_t zend_write;
272270
extern ZEND_API FILE *(*zend_fopen)(const char *filename, zend_string **opened_path);
273-
extern ZEND_API void (*zend_block_interruptions)(void);
274-
extern ZEND_API void (*zend_unblock_interruptions)(void);
275271
extern ZEND_API void (*zend_ticks_function)(int ticks);
276272
extern ZEND_API void (*zend_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 4, 0);
277273
extern ZEND_API void (*zend_on_timeout)(int seconds);

main/SAPI.h

-3
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,6 @@ struct _sapi_module_struct {
248248

249249
char *php_ini_path_override;
250250

251-
void (*block_interruptions)(void);
252-
void (*unblock_interruptions)(void);
253-
254251
void (*default_post_reader)(void);
255252
void (*treat_data)(int arg, char *str, zval *destArray);
256253
char *executable_location;

main/main.c

-2
Original file line numberDiff line numberDiff line change
@@ -2078,8 +2078,6 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
20782078
zuf.write_function = php_output_wrapper;
20792079
zuf.fopen_function = php_fopen_wrapper_for_zend;
20802080
zuf.message_handler = php_message_handler_for_zend;
2081-
zuf.block_interruptions = sapi_module.block_interruptions;
2082-
zuf.unblock_interruptions = sapi_module.unblock_interruptions;
20832081
zuf.get_configuration_directive = php_get_configuration_directive_for_zend;
20842082
zuf.ticks_function = php_run_ticks;
20852083
zuf.on_timeout = php_on_timeout;

sapi/litespeed/lsapi_main.c

-2
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,6 @@ static sapi_module_struct lsapi_sapi_module =
444444
sapi_lsapi_log_message, /* Log message */
445445

446446
NULL, /* php.ini path override */
447-
NULL, /* block interruptions */
448-
NULL, /* unblock interruptions */
449447
NULL, /* default post reader */
450448
NULL, /* treat data */
451449
NULL, /* executable location */

0 commit comments

Comments
 (0)