]> granicus.if.org Git - php/commitdiff
Export zend_register_error_notify_callback() with ZEND_API
authortwosee <twose@qq.com>
Wed, 22 Jul 2020 16:34:52 +0000 (00:34 +0800)
committertwosee <twose@qq.com>
Wed, 22 Jul 2020 16:45:06 +0000 (00:45 +0800)
Zend/zend.c
Zend/zend.h

index 7177f13c578e4bf873263ed40c0706aaec1ce9a0..a38201baeb3046085f842217b18c0f3a99341147 100644 (file)
@@ -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);
 }
index 956d4532df7957cae1a0f3ee1531995510efe1c8..659466322e4449967c2f477c0fa53cebc4cba07f 100644 (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);
 
 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);