[php-src] PR #19001: Fix GH-18990, bug #81029, bug #47314: SOAP HTTP socket not closing on object destruction

From: Date: Tue, 01 Jul 2025 18:06:32 +0000
Subject: [php-src] PR #19001: Fix GH-18990, bug #81029, bug #47314: SOAP HTTP socket not closing on object destruction
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-32274@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/19001 Author: nielsdos Currently the resource is attached to the object and its refcount is increased. This means that the refcount to the resource is 2 instead of 1 as expected. A refcount of 2 is necessary in the current code because of how the error handling works: by using convert_to_null() the resource actually goes to rc_dtor_func(), dropping its refcount to 1. So on error the refcount is correct. To solve the issue, let stream conceptually be a borrow of the resource with refcount 1, and just use ZVAL_NULL() to prevent calling rc_dtor_func() on the resource.

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