mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Please test patches which are merged into the release branch.
db2 has a standard UNIX API which in turn means that it returns non-zero in error conditions.
This commit is contained in:
parent
48b70510ba
commit
1ed150172a
@ -67,7 +67,7 @@ DBA_OPEN_FUNC(db2)
|
||||
filemode = Z_LVAL_PP(info->argv[0]);
|
||||
}
|
||||
|
||||
if(!db_open(info->path, type, gmode, filemode, NULL, NULL, &dbp)) {
|
||||
if(db_open(info->path, type, gmode, filemode, NULL, NULL, &dbp)) {
|
||||
info->dbf = malloc(sizeof(dba_db2_data));
|
||||
memset(info->dbf, 0, sizeof(dba_db2_data));
|
||||
((dba_db2_data *) info->dbf)->dbp = dbp;
|
||||
|
Loading…
Reference in New Issue
Block a user