mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +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
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue