summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authortwosee <twose@qq.com>2020-07-23 00:34:52 +0800
committertwosee <twose@qq.com>2020-07-23 00:45:06 +0800
commite29ee65ec08010e99057f7923b12ca1a3984d95a (patch)
tree9e9edb235789db39fe4d61005f7815ea088e5fa6 /Zend
parent5febd633b97fc6399368d36df639c8b5f218f0c8 (diff)
downloadphp-git-e29ee65ec08010e99057f7923b12ca1a3984d95a.tar.gz
Export zend_register_error_notify_callback() with ZEND_API
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend.c2
-rw-r--r--Zend/zend.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index 7177f13c57..a38201baeb 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -1784,7 +1784,7 @@ void zend_shutdown_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);
}
diff --git a/Zend/zend.h b/Zend/zend.h
index 956d4532df..659466322e 100644
--- a/Zend/zend.h
+++ b/Zend/zend.h
@@ -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);
BEGIN_EXTERN_C()
-
-void zend_register_error_notify_callback(zend_error_notify_cb callback);
+ZEND_API void zend_register_error_notify_callback(zend_error_notify_cb callback);
void zend_startup_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);