Skip to content

Commit bb422cb

Browse files
committed
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3: Cleanup ZEND_MODULE_API_NO => 20050922
2 parents d3dcd61 + dbcd630 commit bb422cb

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

ext/pdo_firebird/firebird_driver.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,17 +567,15 @@ static int firebird_handle_get_attribute(pdo_dbh_t *dbh, long attr, zval *val TS
567567
#else
568568
HMODULE l = GetModuleHandle("fbclient");
569569

570-
if (!l && !(l = GetModuleHandle("gds32"))) {
570+
if (!l) {
571571
break;
572572
}
573573
info_func = (info_func_t)GetProcAddress(l, "isc_get_client_version");
574574
#endif
575575
if (info_func) {
576576
info_func(tmp);
577577
ZVAL_STRING(val,tmp,1);
578-
} else {
579-
ZVAL_STRING(val,"Firebird 1.0/Interbase 6",1);
580-
}
578+
}
581579
#else
582580
ZVAL_NULL(val);
583581
#endif

ext/pdo_firebird/pdo_firebird.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,15 @@ const zend_function_entry pdo_firebird_functions[] = { /* {{{ */
3535

3636
/* {{{ pdo_firebird_deps
3737
*/
38-
#if ZEND_MODULE_API_NO >= 20050922
3938
static const zend_module_dep pdo_firebird_deps[] = {
4039
ZEND_MOD_REQUIRED("pdo")
4140
ZEND_MOD_END
4241
};
43-
#endif
4442
/* }}} */
4543

4644
zend_module_entry pdo_firebird_module_entry = { /* {{{ */
47-
#if ZEND_MODULE_API_NO >= 20050922
4845
STANDARD_MODULE_HEADER_EX, NULL,
4946
pdo_firebird_deps,
50-
#else
51-
STANDARD_MODULE_HEADER,
52-
#endif
5347
"PDO_Firebird",
5448
pdo_firebird_functions,
5549
PHP_MINIT(pdo_firebird),

0 commit comments

Comments
 (0)