Improved PHP extension loading mechanism with support for module dependencies and conflicts

This commit is contained in:
Dmitry Stogov 2005-06-17 09:39:23 +00:00
parent c0c7a9f010
commit f47c78487b
16 changed files with 92 additions and 33 deletions

View file

@ -39,10 +39,19 @@ function_entry pdo_sqlite_functions[] = {
};
/* }}} */
/* {{{ pdo_sqlite_deps
*/
static zend_module_dep pdo_sqlite_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
};
/* }}} */
/* {{{ pdo_sqlite_module_entry
*/
zend_module_entry pdo_sqlite_module_entry = {
STANDARD_MODULE_HEADER,
STANDARD_MODULE_HEADER_EX, NULL,
pdo_sqlite_deps,
"pdo_sqlite",
pdo_sqlite_functions,
PHP_MINIT(pdo_sqlite),