]> granicus.if.org Git - php/commitdiff
Fixed Hash API usage
authorXinchen Hui <laruence@gmail.com>
Sun, 18 May 2014 12:25:07 +0000 (20:25 +0800)
committerXinchen Hui <laruence@gmail.com>
Sun, 18 May 2014 12:25:07 +0000 (20:25 +0800)
ext/pdo/pdo_sql_parser.c
ext/pdo/pdo_sql_parser.re

index 77965ae7a94986d8922c19a935fd8236716eda6b..b9b5044a8efd33741763b4503253eeb0a42263bb 100644 (file)
@@ -853,7 +853,7 @@ int old_pdo_parse_params(pdo_stmt_t *stmt, char *inquery, int inquery_len, char
                                return (int) (s.cur - inquery);
                        }
                        /* lookup bind by index */
-                       if(NULL != zend_hash_index_find(params, bindno, (void **)&param)) 
+                       if(NULL != (params = zend_hash_index_find_ptr(params, bindno))) 
                        {
                                char *quotedstr;
                                int quotedstrlen;
index f13fb8917653a8b1ded518c6af53a21dfa4694e0..be38dfd29cbbd715fb5641fdc3b6ee0dae18957d 100644 (file)
@@ -495,7 +495,7 @@ int old_pdo_parse_params(pdo_stmt_t *stmt, char *inquery, int inquery_len, char
                                return (int) (s.cur - inquery);
                        }
                        /* lookup bind by index */
-                       if(NULL != zend_hash_index_find(params, bindno, (void **)&param)) 
+                       if(NULL != (params = zend_hash_index_find_ptr(params, bindno))) 
                        {
                                char *quotedstr;
                                int quotedstrlen;