diff options
Diffstat (limited to 'ext/pdo/php_pdo_driver.h')
| -rw-r--r-- | ext/pdo/php_pdo_driver.h | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h index 960ddec4ef..974eb0bad0 100644 --- a/ext/pdo/php_pdo_driver.h +++ b/ext/pdo/php_pdo_driver.h @@ -286,6 +286,10 @@ typedef int (*pdo_dbh_check_liveness_func)(pdo_dbh_t *dbh);   * scope */  typedef void (*pdo_dbh_request_shutdown)(pdo_dbh_t *dbh); +/* Called when the PDO handle is scanned for GC. Should populate the get_gc buffer + * with any zvals in the driver_data that would be freed if the handle is destroyed. */ +typedef void (*pdo_dbh_get_gc_func)(pdo_dbh_t *dbh, zend_get_gc_buffer *buffer); +  /* for adding methods to the dbh or stmt objects  pointer to a list of driver specific functions. The convention is  to prefix the function names using the PDO driver name; this will @@ -316,6 +320,7 @@ struct pdo_dbh_methods {  	pdo_dbh_get_driver_methods_func get_driver_methods;  	pdo_dbh_request_shutdown	persistent_shutdown;  	pdo_dbh_txn_func		in_transaction; +	pdo_dbh_get_gc_func		get_gc;  };  /* }}} */ | 
