diff options
author | Dmitry Stogov <dmitry@zend.com> | 2019-03-12 13:44:05 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-03-12 13:44:05 +0300 |
commit | 5aa1176238f41097ea7295ba6911aa19ae7c1021 (patch) | |
tree | d1536f4445a18b91295cda84dd30378048eb0fd0 /ext/pdo/pdo.c | |
parent | c48f5fe841987f9c43111565e9a259698539b9ec (diff) | |
download | php-git-5aa1176238f41097ea7295ba6911aa19ae7c1021.tar.gz |
Cleanup unused module globals
Diffstat (limited to 'ext/pdo/pdo.c')
-rw-r--r-- | ext/pdo/pdo.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/ext/pdo/pdo.c b/ext/pdo/pdo.c index ddd5a4d1bc..88839bf61f 100644 --- a/ext/pdo/pdo.c +++ b/ext/pdo/pdo.c @@ -37,9 +37,6 @@ zend_class_entry *pdo_dbh_ce, *pdo_dbstmt_ce, *pdo_row_ce; /* for exceptional circumstances */ zend_class_entry *pdo_exception_ce; -ZEND_DECLARE_MODULE_GLOBALS(pdo) -static PHP_GINIT_FUNCTION(pdo); - /* True global resources - no need for thread safety here */ /* the registry of PDO drivers */ @@ -132,11 +129,7 @@ zend_module_entry pdo_module_entry = { NULL, PHP_MINFO(pdo), PHP_PDO_VERSION, - PHP_MODULE_GLOBALS(pdo), - PHP_GINIT(pdo), - NULL, - NULL, - STANDARD_MODULE_PROPERTIES_EX + STANDARD_MODULE_PROPERTIES }; /* }}} */ @@ -147,13 +140,6 @@ zend_module_entry pdo_module_entry = { ZEND_GET_MODULE(pdo) #endif -/* {{{ PHP_GINIT_FUNCTION */ -static PHP_GINIT_FUNCTION(pdo) -{ - pdo_globals->global_value = 0; -} -/* }}} */ - PDO_API int php_pdo_register_driver(const pdo_driver_t *driver) /* {{{ */ { if (driver->api_version != PDO_DRIVER_API) { |