Lines Matching refs:num_params
1902 static void _php_pgsql_free_params(char **params, int num_params) argument
1904 if (num_params > 0) {
1906 for (i = 0; i < num_params; i++) {
1927 int num_params = 0; local
1965 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr));
1966 if (num_params > 0) {
1968 params = (char **)safe_emalloc(sizeof(char *), num_params, 0);
1970 for(i = 0; i < num_params; i++) {
1973 _php_pgsql_free_params(params, num_params);
1986 _php_pgsql_free_params(params, num_params);
1997 pgsql_result = PQexecParams(pgsql, query, num_params,
2002 pgsql_result = PQexecParams(pgsql, query, num_params,
2012 _php_pgsql_free_params(params, num_params);
2134 int num_params = 0; local
2172 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr));
2173 if (num_params > 0) {
2175 params = (char **)safe_emalloc(sizeof(char *), num_params, 0);
2177 for(i = 0; i < num_params; i++) {
2180 _php_pgsql_free_params(params, num_params);
2193 _php_pgsql_free_params(params, num_params);
2204 pgsql_result = PQexecPrepared(pgsql, stmtname, num_params,
2209 pgsql_result = PQexecPrepared(pgsql, stmtname, num_params,
2219 _php_pgsql_free_params(params, num_params);
4896 int num_params = 0; local
4927 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr));
4928 if (num_params > 0) {
4930 params = (char **)safe_emalloc(sizeof(char *), num_params, 0);
4932 for(i = 0; i < num_params; i++) {
4935 _php_pgsql_free_params(params, num_params);
4948 _php_pgsql_free_params(params, num_params);
4959 …if (PQsendQueryParams(pgsql, query, num_params, NULL, (const char * const *)params, NULL, NULL, 0)…
4960 _php_pgsql_free_params(params, num_params);
4962 _php_pgsql_free_params(params, num_params);
4968 …if (!PQsendQueryParams(pgsql, query, num_params, NULL, (const char * const *)params, NULL, NULL, 0…
4969 _php_pgsql_free_params(params, num_params);
5083 int num_params = 0; local
5114 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr));
5115 if (num_params > 0) {
5117 params = (char **)safe_emalloc(sizeof(char *), num_params, 0);
5119 for (i = 0; i < num_params; i++) {
5122 _php_pgsql_free_params(params, num_params);
5135 _php_pgsql_free_params(params, num_params);
5146 …if (PQsendQueryPrepared(pgsql, stmtname, num_params, (const char * const *)params, NULL, NULL, 0))…
5147 _php_pgsql_free_params(params, num_params);
5149 _php_pgsql_free_params(params, num_params);
5155 …if (!PQsendQueryPrepared(pgsql, stmtname, num_params, (const char * const *)params, NULL, NULL, 0)…
5156 _php_pgsql_free_params(params, num_params);