- Add +ifdefs to still allow PHP 5.0 builds of PDO

# PDO is a PECL extension and at the moment is still meant to compile on
# both PHP 5.0 and PHP 5.1.
This commit is contained in:
Marcus Boerger 2005-06-23 00:19:16 +00:00
parent 6553a4c7e2
commit 5cf2c9dc45
4 changed files with 33 additions and 1 deletions

View file

@ -41,17 +41,23 @@ function_entry pdo_sqlite_functions[] = {
/* {{{ pdo_sqlite_deps
*/
#if ZEND_EXTENSION_API_NO >= 220050617
static zend_module_dep pdo_sqlite_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
};
#endif
/* }}} */
/* {{{ pdo_sqlite_module_entry
*/
zend_module_entry pdo_sqlite_module_entry = {
#if ZEND_EXTENSION_API_NO >= 220050617
STANDARD_MODULE_HEADER_EX, NULL,
pdo_sqlite_deps,
#else
STANDARD_MODULE_HEADER,
#endif
"pdo_sqlite",
pdo_sqlite_functions,
PHP_MINIT(pdo_sqlite),