com php-src: Fixed hash key in persistent hash: ext/mysqli/mysq li_nonapi.c

From: Date: Thu, 19 Jun 2014 08:24:24 +0000
Subject: com php-src: Fixed hash key in persistent hash: ext/mysqli/mysq li_nonapi.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78984@lists.php.net to get a copy of this message
Commit: 4cc3c7387b4cfa7231e276ce5fc375b781c6b35b Author: Xinchen Hui <laruence@php.net> Thu, 19 Jun 2014 16:24:24 +0800 Parents: 46117aff497577fa5ae2563e29fa15480a45af5f Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4cc3c7387b4cfa7231e276ce5fc375b781c6b35b Log: Fixed hash key in persistent hash Changed paths: M ext/mysqli/mysqli_nonapi.c Diff: diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c index 96ede58..82d766d 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)); } } }

« previous php.cvs (#78984) next »