[php-src] PR #25593: ext/gettext: Fix refcount info for gettext(), dgettext(), dcgettext()
| From: | iliaal | Date: | Thu, 19 Nov 2026 15:28:29 +0000 |
| Subject: | [php-src] PR #25593: ext/gettext: Fix refcount info for gettext(), dgettext(), dcgettext() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40814@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25593
Author: iliaal
gettext(), dgettext() and dcgettext() return the msgid argument itself when there is no translation,
but their stubs declared
@refcount 1, so function and tracing JIT destroy a discarded
or overwritten result without checking its refcount and free a string the caller still holds. Drop
the annotation and regenerate the arginfo and optimizer info.
Fixes GH-25584