diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-06-17 09:39:23 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-06-17 09:39:23 +0000 |
commit | f47c78487bda814ccb1de09fe44fe9a6b4082c30 (patch) | |
tree | b6abddf041fb917f5545741ea8928be9ebb66985 /ext/sqlite/sqlite.c | |
parent | c0c7a9f0101f5488cbf861390f5a89feaebcc94a (diff) | |
download | php-git-f47c78487bda814ccb1de09fe44fe9a6b4082c30.tar.gz |
Improved PHP extension loading mechanism with support for module dependencies and conflicts
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r-- | ext/sqlite/sqlite.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index f0cf248076..7673b428fb 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -267,8 +267,25 @@ function_entry sqlite_funcs_exception[] = { {NULL, NULL, NULL} }; +/* Dependancies */ +static zend_module_dep sqlite_deps[] = { +#if defined(HAVE_SPL) && ((PHP_MAJOR_VERSION > 5) || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 1)) + ZEND_MOD_REQUIRED("spl") +#endif +#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION) + ZEND_MOD_REQUIRED("session") +#endif +#if PHP_SQLITE2_HAVE_PDO + ZEND_MOD_REQUIRED("pdo") +#endif + {NULL, NULL, NULL} +}; + zend_module_entry sqlite_module_entry = { -#if ZEND_MODULE_API_NO >= 20010901 +#if ZEND_MODULE_API_NO >= 20050608 + STANDARD_MODULE_HEADER_EX, NULL, + sqlite_deps, +#elif ZEND_MODULE_API_NO >= 20010901 STANDARD_MODULE_HEADER, #endif "SQLite", |