Add an assertion for certainty

This commit is contained in:
Niels Dossche 2024-03-22 13:15:45 +01:00
parent bb8234d2bd
commit 43cbeb3bf0
No known key found for this signature in database
GPG key ID: B8A8AD166DF0E2E5

View file

@ -236,6 +236,7 @@ MYSQLND_METHOD(mysqlnd_vio, open_tcp_or_unix)(MYSQLND_VIO * const vio, const MYS
zend_resource *le;
if ((le = zend_hash_str_find_ptr(&EG(persistent_list), hashed_details, hashed_details_len))) {
ZEND_ASSERT(le->ptr == net_stream);
origin_dtor = EG(persistent_list).pDestructor;
/*
in_free will let streams code skip destructing - big HACK,