diff options
author | Xinchen Hui <laruence@gmail.com> | 2014-05-18 12:09:14 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2014-05-18 12:09:14 +0800 |
commit | 4ababc3a41e6e68ee0b57ab212ce943900bb6685 (patch) | |
tree | d2ddd040773807ef6fcc07f734fcc6bc356aad3a /ext/pdo | |
parent | eb5c61331198576cab516315eebb2cbbb0c43d71 (diff) | |
download | php-git-4ababc3a41e6e68ee0b57ab212ce943900bb6685.tar.gz |
Fixed Hash API usage (it's in comments)
Diffstat (limited to 'ext/pdo')
-rw-r--r-- | ext/pdo/pdo_sql_parser.re | 4 |
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 **)¶m)) + if((NULL != (param = zend_hash_str_find_ptr(params, s.tok, s.cur-s.tok)) || - (NULL != zend_hash_index_find(params, bindno, (void **)¶m))) + NULL != (params = zend_hash_index_find_ptr(params, bindno))) { char *quotedstr; int quotedstrlen; |