diff options
| author | Xinchen Hui <laruence@php.net> | 2014-06-19 16:24:24 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@php.net> | 2014-06-19 16:24:24 +0800 |
| commit | 4cc3c7387b4cfa7231e276ce5fc375b781c6b35b (patch) | |
| tree | 26411694f9960e9b1331f279affdf58ed54ac576 | |
| parent | 46117aff497577fa5ae2563e29fa15480a45af5f (diff) | |
| download | php-git-4cc3c7387b4cfa7231e276ce5fc375b781c6b35b.tar.gz | |
Fixed hash key in persistent hash
| -rw-r--r-- | ext/mysqli/mysqli_nonapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c index 96ede5878c..82d766d46f 100644 --- a/ext/mysqli/mysqli_nonapi.c +++ b/ext/mysqli/mysqli_nonapi.c @@ -195,7 +195,7 @@ void mysqli_common_connect(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_real_conne le.ptr = plist = calloc(1, sizeof(mysqli_plist_entry)); zend_ptr_stack_init_ex(&plist->free_links, 1); - zend_hash_update_mem(&EG(persistent_list), hash_key, &le, sizeof(le)); + zend_hash_str_update_mem(&EG(persistent_list), hash_key->val, hash_key->len, &le, sizeof(le)); } } } |
