Home
last modified time | relevance | path

Searched refs:bound_param_map (Results 1 – 5 of 5) sorted by relevance

/PHP-7.0/ext/pdo/
H A Dpdo_sql_parser.c646 if (stmt->bound_param_map == NULL) { in pdo_parse_params()
647 ALLOC_HASHTABLE(stmt->bound_param_map); in pdo_parse_params()
648 zend_hash_init(stmt->bound_param_map, 13, NULL, free_param_name, 0); in pdo_parse_params()
657 …if (!strcmp(name, "?") || (p = zend_hash_str_find_ptr(stmt->bound_param_map, name, plc->len)) == N… in pdo_parse_params()
671 zend_hash_str_update_mem(stmt->bound_param_map, name, plc->len, idxbuf, plc->qlen + 1); in pdo_parse_params()
675 zend_hash_index_update_mem(stmt->bound_param_map, plc->bindno, idxbuf, plc->qlen + 1); in pdo_parse_params()
687 if (stmt->bound_param_map == NULL) { in pdo_parse_params()
688 ALLOC_HASHTABLE(stmt->bound_param_map); in pdo_parse_params()
689 zend_hash_init(stmt->bound_param_map, 13, NULL, free_param_name, 0); in pdo_parse_params()
695 zend_hash_index_update_mem(stmt->bound_param_map, plc->bindno, name, plc->len + 1); in pdo_parse_params()
H A Dpdo_sql_parser.re332 if (stmt->bound_param_map == NULL) {
333 ALLOC_HASHTABLE(stmt->bound_param_map);
334 zend_hash_init(stmt->bound_param_map, 13, NULL, free_param_name, 0);
343 …if (!strcmp(name, "?") || (p = zend_hash_str_find_ptr(stmt->bound_param_map, name, plc->len)) == N…
357 zend_hash_str_update_mem(stmt->bound_param_map, name, plc->len, idxbuf, plc->qlen + 1);
361 zend_hash_index_update_mem(stmt->bound_param_map, plc->bindno, idxbuf, plc->qlen + 1);
373 if (stmt->bound_param_map == NULL) {
374 ALLOC_HASHTABLE(stmt->bound_param_map);
375 zend_hash_init(stmt->bound_param_map, 13, NULL, free_param_name, 0);
381 zend_hash_index_update_mem(stmt->bound_param_map, plc->bindno, name, plc->len + 1);
H A Dpdo_stmt.c124 if (stmt->bound_param_map) { in rewrite_name_to_position()
140 if ((name = zend_hash_index_find_ptr(stmt->bound_param_map, param->paramno)) != NULL) { in rewrite_name_to_position()
148 ZEND_HASH_FOREACH_PTR(stmt->bound_param_map, name) { in rewrite_name_to_position()
2315 if (stmt->bound_param_map) { in php_pdo_free_statement()
2316 zend_hash_destroy(stmt->bound_param_map); in php_pdo_free_statement()
2317 FREE_HASHTABLE(stmt->bound_param_map); in php_pdo_free_statement()
2318 stmt->bound_param_map = NULL; in php_pdo_free_statement()
H A Dphp_pdo_driver.h588 HashTable *bound_param_map; member
/PHP-7.0/ext/pdo_pgsql/
H A Dpgsql_statement.c283 if (stmt->bound_param_map && (namevar = zend_hash_find_ptr(stmt->bound_param_map, in pgsql_stmt_param_hook()
296 if (!stmt->bound_param_map) { in pgsql_stmt_param_hook()
299 if (!zend_hash_index_exists(stmt->bound_param_map, param->paramno)) { in pgsql_stmt_param_hook()
310 if (!stmt->bound_param_map) { in pgsql_stmt_param_hook()
315 zend_hash_num_elements(stmt->bound_param_map), in pgsql_stmt_param_hook()
318 zend_hash_num_elements(stmt->bound_param_map), in pgsql_stmt_param_hook()
321 zend_hash_num_elements(stmt->bound_param_map), in pgsql_stmt_param_hook()
324 zend_hash_num_elements(stmt->bound_param_map), in pgsql_stmt_param_hook()

Completed in 23 milliseconds