mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Step 1 in nuking the garbage collector:
- Change the hash destructor to return int - Don't kill the bucket on hash_destroy if the destructor returns 0
This commit is contained in:
parent
db1e0bc820
commit
81d901b14d
15 changed files with 50 additions and 31 deletions
|
@ -22,14 +22,14 @@ ZEND_API int zend_print_variable(zval *var);
|
|||
|
||||
BEGIN_EXTERN_C()
|
||||
ZEND_API int zval_copy_ctor(zval *zvalue);
|
||||
ZEND_API void zval_dtor(zval *zvalue);
|
||||
ZEND_API int zval_dtor(zval *zvalue);
|
||||
END_EXTERN_C()
|
||||
|
||||
ZEND_API void zval_ptr_dtor(zval **zval_ptr);
|
||||
ZEND_API int zval_ptr_dtor(zval **zval_ptr);
|
||||
void zval_add_ref(zval **p);
|
||||
|
||||
#define PVAL_DESTRUCTOR (void (*)(void *)) zval_dtor
|
||||
#define PVAL_PTR_DTOR (void (*)(void *)) zval_ptr_dtor
|
||||
#define PVAL_DESTRUCTOR (int (*)(void *)) zval_dtor
|
||||
#define PVAL_PTR_DTOR (int (*)(void *)) zval_ptr_dtor
|
||||
#define PVAL_COPY_CTOR (void (*)(void *)) zval_copy_ctor
|
||||
|
||||
ZEND_API void var_reset(zval *var);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue