mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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:
parent
4dc055506c
commit
b2c891f88e
4 changed files with 39 additions and 45 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue