mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Improved PHP extension loading mechanism with support for module dependencies and conflicts
This commit is contained in:
parent
c0c7a9f010
commit
f47c78487b
16 changed files with 92 additions and 33 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue