]> granicus.if.org Git - php/commitdiff
Please test patches which are merged into the release branch.
authorSascha Schumann <sas@php.net>
Wed, 10 Apr 2002 11:10:17 +0000 (11:10 +0000)
committerSascha Schumann <sas@php.net>
Wed, 10 Apr 2002 11:10:17 +0000 (11:10 +0000)
db2 has a standard UNIX API which in turn means that
it returns non-zero in error conditions.

ext/dba/dba_db2.c

index bb7cf470d2c4f0e3cb346994fdfbadf7296a2958..d3ecfa3b67f11b03ea6c58ec683a7a4096a2a979 100644 (file)
@@ -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;