summaryrefslogtreecommitdiff
path: root/ext/pdo/pdo_sql_parser.re
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2014-05-18 12:09:14 +0800
committerXinchen Hui <laruence@gmail.com>2014-05-18 12:09:14 +0800
commit4ababc3a41e6e68ee0b57ab212ce943900bb6685 (patch)
treed2ddd040773807ef6fcc07f734fcc6bc356aad3a /ext/pdo/pdo_sql_parser.re
parenteb5c61331198576cab516315eebb2cbbb0c43d71 (diff)
downloadphp-git-4ababc3a41e6e68ee0b57ab212ce943900bb6685.tar.gz
Fixed Hash API usage (it's in comments)
Diffstat (limited to 'ext/pdo/pdo_sql_parser.re')
-rw-r--r--ext/pdo/pdo_sql_parser.re4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo/pdo_sql_parser.re b/ext/pdo/pdo_sql_parser.re
index a1742e397a..f13fb89176 100644
--- a/ext/pdo/pdo_sql_parser.re
+++ b/ext/pdo/pdo_sql_parser.re
@@ -456,9 +456,9 @@ int old_pdo_parse_params(pdo_stmt_t *stmt, char *inquery, int inquery_len, char
}
/* lookup bind first via hash and then index */
/* stupid keys need to be null-terminated, even though we know their length */
- if((NULL != zend_hash_find(params, s.tok, s.cur-s.tok,(void **)&param))
+ if((NULL != (param = zend_hash_str_find_ptr(params, s.tok, s.cur-s.tok))
||
- (NULL != zend_hash_index_find(params, bindno, (void **)&param)))
+ NULL != (params = zend_hash_index_find_ptr(params, bindno)))
{
char *quotedstr;
int quotedstrlen;