mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.3'
* PHP-8.3: Fix incorrect dtor for persistent sdl->encoders
This commit is contained in:
commit
b7bf5e5706
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ encodePtr get_encoder(sdlPtr sdl, const char *ns, const char *type)
|
|||
}
|
||||
if (sdl->encoders == NULL) {
|
||||
sdl->encoders = pemalloc(sizeof(HashTable), sdl->is_persistent);
|
||||
zend_hash_init(sdl->encoders, 0, NULL, delete_encoder, sdl->is_persistent);
|
||||
zend_hash_init(sdl->encoders, 0, NULL, sdl->is_persistent ? delete_encoder_persistent : delete_encoder, sdl->is_persistent);
|
||||
}
|
||||
zend_hash_str_update_ptr(sdl->encoders, nscat, len, new_enc);
|
||||
enc = new_enc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue