1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 18:23:26 +02:00

Fixed Hash API usage

This commit is contained in:
Xinchen Hui
2014-05-18 20:25:07 +08:00
parent af3829608d
commit 204e580fcd
2 changed files with 2 additions and 2 deletions
+1 -1
View 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;
+1 -1
View 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;