diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-02 10:53:21 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-12 13:00:41 +0200 |
| commit | e735de6eae4a60fb55fac6fc99b6b63f525c4b4b (patch) | |
| tree | 667d76200945389a8a274dd061bd3fe5739a8f5b /ext/pdo_mysql/mysql_driver.c | |
| parent | d731b764e527e2dc6d9a297a80174296c960ed90 (diff) | |
| download | php-git-e735de6eae4a60fb55fac6fc99b6b63f525c4b4b.tar.gz | |
Add GC support for PDO driver data
Add a get_gc method that can be implemented by drivers, which can
be used to add additional zvals to the GC buffer.
Implement GC support for PDO SQLite callbacks in particular.
Closes GH-6262.
Diffstat (limited to 'ext/pdo_mysql/mysql_driver.c')
| -rw-r--r-- | ext/pdo_mysql/mysql_driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index a666489a50..19923464e4 100644 --- a/ext/pdo_mysql/mysql_driver.c +++ b/ext/pdo_mysql/mysql_driver.c @@ -563,7 +563,8 @@ static const struct pdo_dbh_methods mysql_methods = { pdo_mysql_check_liveness, NULL, pdo_mysql_request_shutdown, - pdo_mysql_in_transaction + pdo_mysql_in_transaction, + NULL /* get_gc */ }; /* }}} */ |
