]> granicus.if.org Git - php/commitdiff
Fixed Hash API usage (it's in comments)
authorXinchen Hui <laruence@gmail.com>
Sun, 18 May 2014 04:09:14 +0000 (12:09 +0800)
committerXinchen Hui <laruence@gmail.com>
Sun, 18 May 2014 04:09:14 +0000 (12:09 +0800)
ext/pdo/pdo_sql_parser.re

index a1742e397a65fcf94241d5fafd75ef60effaa876..f13fb8917653a8b1ded518c6af53a21dfa4694e0 100644 (file)
@@ -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;