diff options
author | Sascha Schumann <sas@php.net> | 2002-04-10 11:10:17 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2002-04-10 11:10:17 +0000 |
commit | 1ed150172a9f1d036a28b7cc63358d91bd34b496 (patch) | |
tree | 0ead6cb2c0216f23fcd2f251b5d4202061d1bdea | |
parent | 48b70510ba8fa9415751dbb3a07e871f1ad5df3e (diff) | |
download | php-git-1ed150172a9f1d036a28b7cc63358d91bd34b496.tar.gz |
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.
-rw-r--r-- | ext/dba/dba_db2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dba/dba_db2.c b/ext/dba/dba_db2.c index bb7cf470d2..d3ecfa3b67 100644 --- a/ext/dba/dba_db2.c +++ b/ext/dba/dba_db2.c @@ -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; |