build related adjustments.

These need to be included in beta 2
This commit is contained in:
Wez Furlong 2005-06-22 08:45:22 +00:00
parent c3e2f113f3
commit 372c38a53a
2 changed files with 15 additions and 2 deletions

View File

@ -36,9 +36,17 @@ function_entry pdo_odbc_functions[] = {
};
/* }}} */
/* {{{ pdo_odbc_deps[] */
static zend_module_dep pdo_odbc_deps[] = {
ZEND_MOD_REQUIRED("pdo")
{NULL, NULL, NULL}
};
/* }}} */
/* {{{ pdo_odbc_module_entry */
zend_module_entry pdo_odbc_module_entry = {
STANDARD_MODULE_HEADER,
STANDARD_MODULE_HEADER_EX, NULL,
pdo_odbc_deps,
"PDO_ODBC",
pdo_odbc_functions,
PHP_MINIT(pdo_odbc),

View File

@ -7,7 +7,12 @@ $SQL = array(
);
//$DB = new pdo($CONNECTION, $USER, $PASSWD);
$DB = new pdo($CONNECTION);
try {
$DB = new pdo($CONNECTION);
} catch (Exception $tmp) {
$DB = NULL;
return;
}
foreach(array('test','classtypes') as $name)
{