[php-src] PR #12002: Fix memory leak when setting an invalid DOMDocument encoding

From: Date: Sat, 19 Aug 2023 22:10:15 +0000
Subject: [php-src] PR #12002: Fix memory leak when setting an invalid DOMDocument encoding
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-23415@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/12002 Author: nielsdos Because the failure path did not release the string, there was a memory leak. As the only valid types for this function are IS_NULL and IS_STRING, we and IS_NULL is always rejected in practice, solve the issue by not using a function that increments the refcount in the first place.

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