Skip to content

Commit b30796f

Browse files
committed
Add an assertion for certainty
1 parent 9a569d2 commit b30796f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/mysqlnd/mysqlnd_vio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ MYSQLND_METHOD(mysqlnd_vio, open_tcp_or_unix)(MYSQLND_VIO * const vio, const MYS
236236
zend_resource *le;
237237

238238
if ((le = zend_hash_str_find_ptr(&EG(persistent_list), hashed_details, hashed_details_len))) {
239+
ZEND_ASSERT(le->ptr == net_stream);
239240
origin_dtor = EG(persistent_list).pDestructor;
240241
/*
241242
in_free will let streams code skip destructing - big HACK,

0 commit comments

Comments
 (0)