Lines Matching refs:num_params

1042 static void _php_pgsql_free_params(char **params, int num_params)  in _php_pgsql_free_params()  argument
1044 if (num_params > 0) { in _php_pgsql_free_params()
1046 for (i = 0; i < num_params; i++) { in _php_pgsql_free_params()
1063 int num_params = 0; in PHP_FUNCTION() local
1099 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr)); in PHP_FUNCTION()
1100 if (num_params > 0) { in PHP_FUNCTION()
1102 params = (char **)safe_emalloc(sizeof(char *), num_params, 0); in PHP_FUNCTION()
1121 pgsql_result = PQexecParams(pgsql, query, num_params, in PHP_FUNCTION()
1126 pgsql_result = PQexecParams(pgsql, query, num_params, in PHP_FUNCTION()
1136 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
1249 int num_params = 0; in PHP_FUNCTION() local
1285 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr)); in PHP_FUNCTION()
1286 if (num_params > 0) { in PHP_FUNCTION()
1288 params = (char **)safe_emalloc(sizeof(char *), num_params, 0); in PHP_FUNCTION()
1306 pgsql_result = PQexecPrepared(pgsql, stmtname, num_params, in PHP_FUNCTION()
1311 pgsql_result = PQexecPrepared(pgsql, stmtname, num_params, in PHP_FUNCTION()
1321 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
3622 int num_params = 0; in PHP_FUNCTION() local
3650 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr)); in PHP_FUNCTION()
3651 if (num_params > 0) { in PHP_FUNCTION()
3653 params = (char **)safe_emalloc(sizeof(char *), num_params, 0); in PHP_FUNCTION()
3671 …if (PQsendQueryParams(pgsql, query, num_params, NULL, (const char * const *)params, NULL, NULL, 0)… in PHP_FUNCTION()
3672 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
3674 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
3680 …if (!PQsendQueryParams(pgsql, query, num_params, NULL, (const char * const *)params, NULL, NULL, 0… in PHP_FUNCTION()
3681 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
3789 int num_params = 0; in PHP_FUNCTION() local
3817 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr)); in PHP_FUNCTION()
3818 if (num_params > 0) { in PHP_FUNCTION()
3820 params = (char **)safe_emalloc(sizeof(char *), num_params, 0); in PHP_FUNCTION()
3840 …if (PQsendQueryPrepared(pgsql, stmtname, num_params, (const char * const *)params, NULL, NULL, 0))… in PHP_FUNCTION()
3841 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
3843 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
3849 …if (!PQsendQueryPrepared(pgsql, stmtname, num_params, (const char * const *)params, NULL, NULL, 0)… in PHP_FUNCTION()
3850 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()