mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Refactor register shutdown function mechanism
Use FCI/FCC structure instead of custom implementation which does the same. This also fixes the "bug" which prevented static methods from being shutdown functions. Closes GH-5829 Co-authored-by: Aaron Piotrowski <aaron@trowski.com>
This commit is contained in:
parent
fcd18757b2
commit
a9695cc615
5 changed files with 39 additions and 50 deletions
|
@ -143,9 +143,8 @@ PHPAPI double php_get_nan(void);
|
|||
PHPAPI double php_get_inf(void);
|
||||
|
||||
typedef struct _php_shutdown_function_entry {
|
||||
zval function_name;
|
||||
zval *arguments;
|
||||
int arg_count;
|
||||
zend_fcall_info fci;
|
||||
zend_fcall_info_cache fci_cache;
|
||||
} php_shutdown_function_entry;
|
||||
|
||||
PHPAPI extern bool register_user_shutdown_function(const char *function_name, size_t function_len, php_shutdown_function_entry *shutdown_function_entry);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue