cvs: php4 /ext/dba dba_db2.c
| From: | Sascha Schumann | Date: | Wed, 10 Apr 2002 11:10:21 +0000 |
| Subject: | cvs: php4 /ext/dba dba_db2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11001@lists.php.net to get a copy of this message | ||
sas Wed Apr 10 07:10:21 2002 EDT
Modified files:
/php4/ext/dba dba_db2.c
Log:
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.
Index: php4/ext/dba/dba_db2.c
diff -u php4/ext/dba/dba_db2.c:1.21 php4/ext/dba/dba_db2.c:1.22
--- php4/ext/dba/dba_db2.c:1.21 Mon Apr 8 02:36:03 2002
+++ php4/ext/dba/dba_db2.c Wed Apr 10 07:10:17 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dba_db2.c,v 1.21 2002/04/08 06:36:03 derick Exp $ */
+/* $Id: dba_db2.c,v 1.22 2002/04/10 11:10:17 sas Exp $ */
#include "php.h"
@@ -67,7 +67,7 @@
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;