History log of /PHP-8.2/ext/session/tests/gh13891.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 5ce9687c 06-Apr-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-13891: memleak and segfault when using ini_set with session.trans_sid_hosts (#13892)

The hash tables used are allocated via the persistent allocator.
When using ini_set, the alloc

Fix GH-13891: memleak and segfault when using ini_set with session.trans_sid_hosts (#13892)

The hash tables used are allocated via the persistent allocator.
When using ini_set, the allocation happens via the non-persistent
allocator. When the table is then freed in GSHUTDOWN, we get a crash
because the allocators are mismatched.

As a side note, it is strange that this is designed this way, because it
means that ini_sets persist between requests...

Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>

show more ...