|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-01-29 01:14 UTC] danack@php.net
[2018-01-31 10:29 UTC] sixd@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: sixd
[2018-01-31 10:29 UTC] sixd@php.net
[2018-01-31 10:30 UTC] sixd@php.net
-Assigned To: sixd
+Assigned To: dmitry
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 00:00:02 2025 UTC |
Description: ------------ OCI8 calls zend_hash_find() to look up existing connection in the hash table. However, with new string compare function zend_string_equal_content(), it failed to match a hash key: static zend_always_inline Bucket *zend_hash_find_bucket(const HashTable *ht, zend_string *key, zend_bool known_hash) { ... while (EXPECTED(idx != HT_INVALID_IDX)) { p = HT_HASH_TO_BUCKET_EX(arData, idx); if (EXPECTED(p->key == key)) { /* check for the same interned string */ return p; } else if (EXPECTED(p->h == h) && EXPECTED(p->key) && EXPECTED(zend_string_equal_content(p->key, key))) { return p; } ... } Revert zend_string_equal_content() to memcmp() resolved the issue. Test script: --------------- Reproducible testcase: ext/oci8/tests/drcp_connection1.phpt