[php-src] PR #23503: [intl] Fix leak of time zone wrapper in Calendar debug info

From: Date: Sat, 29 Aug 2026 12:17:14 +0000
Subject: [php-src] PR #23503: [intl] Fix leak of time zone wrapper in Calendar debug info
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-38197@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23503 Author: iliaal Calendar_get_debug_info() created a temporary IntlTimeZone wrapper zval via timezone_object_construct() and never released it, leaking one wrapper object per var_dump()/debug dump of an IntlCalendar instance. The wrapper is now released with zval_ptr_dtor() after its debug info has been copied into the result. Other timezone_object_construct() call sites write into return_value and are refcount-managed. No other intl get_debug_info handler constructs a temporary wrapper.

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