Avoid string duplications in sqlite drivers (#17115)

These string duplications are necessary to unregister the callback
later. We can just keep using zend_string to avoid memory duplications.
This commit is contained in:
Niels Dossche 2024-12-18 17:32:11 +01:00 committed by GitHub
parent 4dc055506c
commit b2c891f88e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 39 additions and 45 deletions

View file

@ -44,7 +44,7 @@ struct php_sqlite3_bound_param {
typedef struct _php_sqlite3_func {
struct _php_sqlite3_func *next;
const char *func_name;
zend_string *func_name;
int argc;
zend_fcall_info_cache func;
@ -56,7 +56,7 @@ typedef struct _php_sqlite3_func {
typedef struct _php_sqlite3_collation {
struct _php_sqlite3_collation *next;
const char *collation_name;
zend_string *collation_name;
zend_fcall_info_cache cmp_func;
} php_sqlite3_collation;