summaryrefslogtreecommitdiff
path: root/ext/pdo_oci/oci_driver.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-10-02 10:53:21 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-10-12 13:00:41 +0200
commite735de6eae4a60fb55fac6fc99b6b63f525c4b4b (patch)
tree667d76200945389a8a274dd061bd3fe5739a8f5b /ext/pdo_oci/oci_driver.c
parentd731b764e527e2dc6d9a297a80174296c960ed90 (diff)
downloadphp-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_oci/oci_driver.c')
-rw-r--r--ext/pdo_oci/oci_driver.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/pdo_oci/oci_driver.c b/ext/pdo_oci/oci_driver.c
index 096a26575e..2c65fc973b 100644
--- a/ext/pdo_oci/oci_driver.c
+++ b/ext/pdo_oci/oci_driver.c
@@ -705,9 +705,10 @@ static const struct pdo_dbh_methods oci_methods = {
pdo_oci_fetch_error_func,
oci_handle_get_attribute,
pdo_oci_check_liveness, /* check_liveness */
- NULL, /* get_driver_methods */
- NULL,
- NULL
+ NULL, /* get_driver_methods */
+ NULL, /* request_shutdown */
+ NULL, /* in_transaction */
+ NULL /* get_gc */
};
static int pdo_oci_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /* {{{ */