mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix incorrect dtor for persistent sdl->encoders
This commit is contained in:
1
NEWS
1
NEWS
@@ -44,6 +44,7 @@ PHP NEWS
|
||||
. Fix incorrect uri check in SOAP caching. (nielsdos)
|
||||
. Fix segfault and assertion failure with refcounted props and arrays.
|
||||
(nielsdos)
|
||||
. Fix potential crash with an edge case of persistent encoders. (nielsdos)
|
||||
|
||||
- Streams:
|
||||
. Fixed bug #75708 (getimagesize with "&$imageinfo" fails on StreamWrappers).
|
||||
|
||||
@@ -155,7 +155,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;
|
||||
|
||||
Reference in New Issue
Block a user