PDO: Store/pass query_string as zend_string

Rather than storing char* + size_t, use a zend_string*. Also
avoid various copies of the query string.
This commit is contained in:
Nikita Popov 2020-12-11 17:13:38 +01:00
parent c288b5294b
commit 2d51c203f0
15 changed files with 81 additions and 102 deletions

View file

@ -60,7 +60,7 @@ typedef struct {
pdo_pgsql_column *cols;
char *cursor_name;
char *stmt_name;
char *query;
zend_string *query;
char **param_values;
int *param_lengths;
int *param_formats;