Lines Matching refs:num_params
1200 static void _php_pgsql_free_params(char **params, int num_params) in _php_pgsql_free_params() argument
1202 if (num_params > 0) { in _php_pgsql_free_params()
1204 for (i = 0; i < num_params; i++) { in _php_pgsql_free_params()
1221 int num_params = 0; in PHP_FUNCTION() local
1262 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr)); in PHP_FUNCTION()
1263 if (num_params > 0) { in PHP_FUNCTION()
1265 params = (char **)safe_emalloc(sizeof(char *), num_params, 0); in PHP_FUNCTION()
1284 pgsql_result = PQexecParams(pgsql, query, num_params, in PHP_FUNCTION()
1289 pgsql_result = PQexecParams(pgsql, query, num_params, in PHP_FUNCTION()
1299 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
1417 int num_params = 0; in PHP_FUNCTION() local
1458 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr)); in PHP_FUNCTION()
1459 if (num_params > 0) { in PHP_FUNCTION()
1461 params = (char **)safe_emalloc(sizeof(char *), num_params, 0); in PHP_FUNCTION()
1479 pgsql_result = PQexecPrepared(pgsql, stmtname, num_params, in PHP_FUNCTION()
1484 pgsql_result = PQexecPrepared(pgsql, stmtname, num_params, in PHP_FUNCTION()
1494 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
3967 int num_params = 0; in PHP_FUNCTION() local
3997 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr)); in PHP_FUNCTION()
3998 if (num_params > 0) { in PHP_FUNCTION()
4000 params = (char **)safe_emalloc(sizeof(char *), num_params, 0); in PHP_FUNCTION()
4018 …if (PQsendQueryParams(pgsql, query, num_params, NULL, (const char * const *)params, NULL, NULL, 0)… in PHP_FUNCTION()
4019 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
4021 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
4027 …if (!PQsendQueryParams(pgsql, query, num_params, NULL, (const char * const *)params, NULL, NULL, 0… in PHP_FUNCTION()
4028 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
4138 int num_params = 0; in PHP_FUNCTION() local
4168 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr)); in PHP_FUNCTION()
4169 if (num_params > 0) { in PHP_FUNCTION()
4171 params = (char **)safe_emalloc(sizeof(char *), num_params, 0); in PHP_FUNCTION()
4191 …if (PQsendQueryPrepared(pgsql, stmtname, num_params, (const char * const *)params, NULL, NULL, 0))… in PHP_FUNCTION()
4192 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
4194 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
4200 …if (!PQsendQueryPrepared(pgsql, stmtname, num_params, (const char * const *)params, NULL, NULL, 0)… in PHP_FUNCTION()
4201 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()