Skip to content

Commit 7eb1b74

Browse files
committed
Turn startup function into void
1 parent bc17e63 commit 7eb1b74

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Zend/zend.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,11 +1768,9 @@ ZEND_API void zend_map_ptr_extend(size_t last)
17681768
}
17691769
}
17701770

1771-
int zend_startup_error_notify_callbacks()
1771+
void zend_startup_error_notify_callbacks()
17721772
{
17731773
zend_llist_init(&zend_error_notify_callbacks, sizeof(zend_error_notify_cb), NULL, 1);
1774-
1775-
return SUCCESS;
17761774
}
17771775

17781776
void zend_shutdown_error_notify_callbacks()

Zend/zend.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ typedef void (*zend_error_notify_cb)(int type, const char *error_filename, uint3
356356
BEGIN_EXTERN_C()
357357

358358
void zend_register_error_notify_callback(zend_error_notify_cb callback);
359-
int zend_startup_error_notify_callbacks();
359+
void zend_startup_error_notify_callbacks();
360360
void zend_shutdown_error_notify_callbacks();
361361
void zend_error_notify_all_callbacks(int type, const char *error_filename, uint32_t error_lineno, zend_string *message);
362362
END_EXTERN_C()

0 commit comments

Comments
 (0)