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
..
2025-07-02 18:44:05 +02:00
2022-06-12 13:37:23 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2024-08-05 22:02:51 +02:00
2021-11-10 11:00:37 +01:00
2021-08-20 12:54:39 +02:00
2021-05-26 12:18:51 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2024-09-09 20:04:15 +02:00
2021-04-08 10:36:44 +02:00
2021-05-26 12:18:51 +02:00
2021-03-29 14:17:55 +02:00
2021-08-20 10:08:22 +02:00
2022-08-30 07:46:32 -04:00
2021-05-26 12:18:51 +02:00
2024-09-26 13:16:00 +02:00
2021-05-26 12:18:51 +02:00
2021-05-26 12:18:51 +02:00
2023-05-09 19:52:52 +02:00
2021-08-20 14:15:23 +02:00
2023-11-22 20:39:29 -06:00
2021-04-08 10:36:44 +02:00
2021-05-26 12:18:51 +02:00
2019-01-04 12:40:28 +01:00
2021-04-08 10:36:44 +02:00
2020-03-09 15:01:31 +01:00
2021-04-08 10:36:44 +02:00
2021-06-29 17:13:02 +02:00
2021-01-31 21:15:23 -08:00
2021-04-08 10:36:44 +02:00
2021-05-26 12:18:51 +02:00
2021-11-10 11:00:37 +01:00
2019-05-11 17:16:50 +02:00
2021-11-10 11:00:37 +01:00
2023-05-09 19:48:45 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2022-05-23 16:51:32 +02:00
2022-05-23 16:49:12 +02:00
2022-10-13 16:00:36 +02:00
2022-10-13 15:56:08 +02:00
2023-10-11 17:21:54 +02:00
2023-10-11 17:21:54 +02:00
2024-11-08 20:47:28 +01:00
2024-09-16 20:47:36 +02:00
2024-10-12 23:20:15 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2024-09-27 19:58:30 +02:00
2024-09-27 19:58:30 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2018-09-21 14:12:25 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-07-19 13:44:20 +02:00
2021-04-08 10:36:44 +02:00
2025-07-01 09:35:03 -07:00
2021-07-14 09:36:26 +02:00
2021-11-10 11:00:37 +01:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-05-26 12:18:51 +02:00
2021-05-26 12:18:51 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-05-26 12:18:51 +02:00
2021-05-26 12:18:51 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-05-26 12:18:51 +02:00
2021-05-26 12:18:51 +02:00
2021-04-08 10:36:44 +02:00