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

@ -30,7 +30,7 @@ struct pdo_sqlite_func {
struct pdo_sqlite_func *next;
int argc;
const char *funcname;
zend_string *funcname;
/* accelerated callback references */
zend_fcall_info_cache func;
@ -41,7 +41,7 @@ struct pdo_sqlite_func {
struct pdo_sqlite_collation {
struct pdo_sqlite_collation *next;
const char *name;
zend_string *name;
zend_fcall_info_cache callback;
};