diff options
Diffstat (limited to 'ext/pdo_firebird/pdo_firebird.c')
-rw-r--r-- | ext/pdo_firebird/pdo_firebird.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/pdo_firebird/pdo_firebird.c b/ext/pdo_firebird/pdo_firebird.c index e1a9bef643..29b8bc85a7 100644 --- a/ext/pdo_firebird/pdo_firebird.c +++ b/ext/pdo_firebird/pdo_firebird.c @@ -58,7 +58,14 @@ PHP_MINIT_FUNCTION(pdo_firebird) /* {{{ */ REGISTER_PDO_CLASS_CONST_LONG("FB_ATTR_TIME_FORMAT", (zend_long) PDO_FB_ATTR_TIME_FORMAT); REGISTER_PDO_CLASS_CONST_LONG("FB_ATTR_TIMESTAMP_FORMAT", (zend_long) PDO_FB_ATTR_TIMESTAMP_FORMAT); - php_pdo_register_driver(&pdo_firebird_driver); + if (FAILURE == php_pdo_register_driver(&pdo_firebird_driver)) { + return FAILURE; + } + +#ifdef ZEND_SIGNALS + /* firebird replaces some signals at runtime, suppress warnings. */ + SIGG(check) = 0; +#endif return SUCCESS; } |