mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +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
|
@ -133,7 +133,7 @@ ZEND_API void *zend_plist_find(int id, int *type)
|
|||
}
|
||||
|
||||
|
||||
void list_entry_destructor(void *ptr)
|
||||
int list_entry_destructor(void *ptr)
|
||||
{
|
||||
list_entry *le = (list_entry *) ptr;
|
||||
list_destructors_entry *ld;
|
||||
|
@ -145,10 +145,11 @@ void list_entry_destructor(void *ptr)
|
|||
} else {
|
||||
zend_error(E_WARNING,"Unknown list entry type in request shutdown (%d)",le->type);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
void plist_entry_destructor(void *ptr)
|
||||
int plist_entry_destructor(void *ptr)
|
||||
{
|
||||
list_entry *le = (list_entry *) ptr;
|
||||
list_destructors_entry *ld;
|
||||
|
@ -160,6 +161,7 @@ void plist_entry_destructor(void *ptr)
|
|||
} else {
|
||||
zend_error(E_WARNING,"Unknown persistent list entry type in module shutdown (%d)",le->type);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue