com php-src: Fixed Hash API usage (it's in comments): ext/pdo/pdo_sql_parser.re
| From: | Xinchen Hui | Date: | Sun, 18 May 2014 04:09:14 +0000 |
| Subject: | com php-src: Fixed Hash API usage (it's in comments): ext/pdo/pdo_sql_parser.re | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78431@lists.php.net to get a copy of this message | ||
Commit: 4ababc3a41e6e68ee0b57ab212ce943900bb6685
Author: Xinchen Hui <laruence@gmail.com> Sun, 18 May 2014 12:09:14 +0800
Parents: eb5c61331198576cab516315eebb2cbbb0c43d71
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4ababc3a41e6e68ee0b57ab212ce943900bb6685
Log:
Fixed Hash API usage (it's in comments)
Changed paths:
M ext/pdo/pdo_sql_parser.re
Diff:
diff --git a/ext/pdo/pdo_sql_parser.re b/ext/pdo/pdo_sql_parser.re
index a1742e3..f13fb89 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;