[php-src] PR #25596: ext/mbstring: Add missing reference to INI value in mb_get_info()

From: Date: Thu, 19 Nov 2026 16:08:06 +0000
Subject: [php-src] PR #25596: ext/mbstring: Add missing reference to INI value in mb_get_info()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40817@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25596 Author: iliaal After ini_set() stores a runtime value for mbstring.http_output_conv_mimetypes, mb_get_info() returns that string, alone or in the "all" array, without adding a reference, so destroying the result frees the string and a later ini_get() reads freed memory. Add the reference and drop the @refcount 1 annotation, since the result can now be shared with the INI entry. Backport of the refcount part of b621f80dce5 by Gina Peter Banyard.

« previous php.git-pulls (#40817) next »