Export zend_register_error_notify_callback() with ZEND_API

This commit is contained in:
twosee 2020-07-23 00:34:52 +08:00
parent 5febd633b9
commit e29ee65ec0
2 changed files with 2 additions and 3 deletions

View file

@ -1784,7 +1784,7 @@ void zend_shutdown_error_notify_callbacks()
zend_llist_destroy(&zend_error_notify_callbacks); zend_llist_destroy(&zend_error_notify_callbacks);
} }
void zend_register_error_notify_callback(zend_error_notify_cb cb) ZEND_API void zend_register_error_notify_callback(zend_error_notify_cb cb)
{ {
zend_llist_add_element(&zend_error_notify_callbacks, &cb); zend_llist_add_element(&zend_error_notify_callbacks, &cb);
} }

View file

@ -354,8 +354,7 @@ ZEND_API void zend_restore_error_handling(zend_error_handling *saved);
typedef void (*zend_error_notify_cb)(int type, const char *error_filename, uint32_t error_lineno, zend_string *message); typedef void (*zend_error_notify_cb)(int type, const char *error_filename, uint32_t error_lineno, zend_string *message);
BEGIN_EXTERN_C() BEGIN_EXTERN_C()
ZEND_API void zend_register_error_notify_callback(zend_error_notify_cb callback);
void zend_register_error_notify_callback(zend_error_notify_cb callback);
void zend_startup_error_notify_callbacks(); void zend_startup_error_notify_callbacks();
void zend_shutdown_error_notify_callbacks(); void zend_shutdown_error_notify_callbacks();
void zend_error_notify_all_callbacks(int type, const char *error_filename, uint32_t error_lineno, zend_string *message); void zend_error_notify_all_callbacks(int type, const char *error_filename, uint32_t error_lineno, zend_string *message);