diff options
author | Remi Collet <remi@remirepo.net> | 2020-03-25 09:06:40 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-03-25 09:06:40 +0100 |
commit | 1861ef91395f317ed8491e84e1ac0ee6a3ebd20f (patch) | |
tree | a6d243731fc27b42f7d6b8d5613c71fa33500f85 /php_rpminfo.h | |
parent | 039315bf493bda2fdcc2031d383e49c3030bc462 (diff) |
speed optimization: open DB only once per request
Diffstat (limited to 'php_rpminfo.h')
-rw-r--r-- | php_rpminfo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/php_rpminfo.h b/php_rpminfo.h index 4fbe8af..19add24 100644 --- a/php_rpminfo.h +++ b/php_rpminfo.h @@ -38,6 +38,7 @@ extern zend_module_entry rpminfo_module_entry; ZEND_BEGIN_MODULE_GLOBALS(rpminfo) rpmts ts; + rpmdb db; ZEND_END_MODULE_GLOBALS(rpminfo) #define RPMINFO_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(rpminfo, v) |