[php-src] master: Add an assertion for certainty

From: Date: Sun, 21 Apr 2024 14:08:35 +0000
Subject: [php-src] master: Add an assertion for certainty
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-128193@lists.php.net to get a copy of this message
Author: Niels Dossche (nielsdos) Date: 2024-04-21T16:07:40+02:00 Commit: https://github.com/php/php-src/commit/43cbeb3bf0a2bf2633bfbc6bd87c9dbecebd28e5 Raw diff: https://github.com/php/php-src/commit/43cbeb3bf0a2bf2633bfbc6bd87c9dbecebd28e5.diff Add an assertion for certainty Changed paths: M ext/mysqlnd/mysqlnd_vio.c Diff: diff --git a/ext/mysqlnd/mysqlnd_vio.c b/ext/mysqlnd/mysqlnd_vio.c index 7a9fa313922f8..67210f083a967 100644 --- a/ext/mysqlnd/mysqlnd_vio.c +++ b/ext/mysqlnd/mysqlnd_vio.c @@ -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,

« previous php.cvs (#128193) next »