1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
Niels Dossche 69328ba304 Fix GH-18990, bug #81029, bug #47314: SOAP HTTP socket not closing on object destruction
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.

Closes GH-19001.
2025-07-02 18:44:05 +02:00
..
2021-11-10 11:00:37 +01:00
2021-08-20 10:08:22 +02:00
2024-09-26 13:16:00 +02:00
2021-08-20 14:15:23 +02:00
2019-01-04 12:40:28 +01:00
2020-03-09 15:01:31 +01:00
2021-06-29 17:13:02 +02:00
2018-09-21 14:12:25 +02:00
2025-07-01 09:35:03 -07:00