Skip to content

Commit e29ee65

Browse files
committed
Export zend_register_error_notify_callback() with ZEND_API
1 parent 5febd63 commit e29ee65

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Zend/zend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,7 @@ void zend_shutdown_error_notify_callbacks()
17841784
zend_llist_destroy(&zend_error_notify_callbacks);
17851785
}
17861786

1787-
void zend_register_error_notify_callback(zend_error_notify_cb cb)
1787+
ZEND_API void zend_register_error_notify_callback(zend_error_notify_cb cb)
17881788
{
17891789
zend_llist_add_element(&zend_error_notify_callbacks, &cb);
17901790
}

Zend/zend.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,7 @@ ZEND_API void zend_restore_error_handling(zend_error_handling *saved);
354354
typedef void (*zend_error_notify_cb)(int type, const char *error_filename, uint32_t error_lineno, zend_string *message);
355355

356356
BEGIN_EXTERN_C()
357-
358-
void zend_register_error_notify_callback(zend_error_notify_cb callback);
357+
ZEND_API void zend_register_error_notify_callback(zend_error_notify_cb callback);
359358
void zend_startup_error_notify_callbacks();
360359
void zend_shutdown_error_notify_callbacks();
361360
void zend_error_notify_all_callbacks(int type, const char *error_filename, uint32_t error_lineno, zend_string *message);

0 commit comments

Comments
 (0)