Lines Matching refs:num_params

1053 static void _php_pgsql_free_params(char **params, int num_params)  in _php_pgsql_free_params()  argument
1055 if (num_params > 0) { in _php_pgsql_free_params()
1057 for (i = 0; i < num_params; i++) { in _php_pgsql_free_params()
1076 int num_params = 0; in PHP_FUNCTION() local
1113 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr)); in PHP_FUNCTION()
1114 if (num_params > 0) { in PHP_FUNCTION()
1116 params = (char **)safe_emalloc(sizeof(char *), num_params, 0); in PHP_FUNCTION()
1135 pgsql_result = PQexecParams(pgsql, query, num_params, in PHP_FUNCTION()
1140 pgsql_result = PQexecParams(pgsql, query, num_params, in PHP_FUNCTION()
1150 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
1268 int num_params = 0; in PHP_FUNCTION() local
1305 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr)); in PHP_FUNCTION()
1306 if (num_params > 0) { in PHP_FUNCTION()
1308 params = (char **)safe_emalloc(sizeof(char *), num_params, 0); in PHP_FUNCTION()
1326 pgsql_result = PQexecPrepared(pgsql, stmtname, num_params, in PHP_FUNCTION()
1331 pgsql_result = PQexecPrepared(pgsql, stmtname, num_params, in PHP_FUNCTION()
1341 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
3719 int num_params = 0; in PHP_FUNCTION() local
3747 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr)); in PHP_FUNCTION()
3748 if (num_params > 0) { in PHP_FUNCTION()
3750 params = (char **)safe_emalloc(sizeof(char *), num_params, 0); in PHP_FUNCTION()
3768 …if (PQsendQueryParams(pgsql, query, num_params, NULL, (const char * const *)params, NULL, NULL, 0)… in PHP_FUNCTION()
3769 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
3771 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
3777 …if (!PQsendQueryParams(pgsql, query, num_params, NULL, (const char * const *)params, NULL, NULL, 0… in PHP_FUNCTION()
3778 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
3884 int num_params = 0; in PHP_FUNCTION() local
3912 num_params = zend_hash_num_elements(Z_ARRVAL_P(pv_param_arr)); in PHP_FUNCTION()
3913 if (num_params > 0) { in PHP_FUNCTION()
3915 params = (char **)safe_emalloc(sizeof(char *), num_params, 0); in PHP_FUNCTION()
3935 …if (PQsendQueryPrepared(pgsql, stmtname, num_params, (const char * const *)params, NULL, NULL, 0))… in PHP_FUNCTION()
3936 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
3938 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()
3944 …if (!PQsendQueryPrepared(pgsql, stmtname, num_params, (const char * const *)params, NULL, NULL, 0)… in PHP_FUNCTION()
3945 _php_pgsql_free_params(params, num_params); in PHP_FUNCTION()