CVS update: php3/functions
| From: | sas | Date: | Wed, 12 May 1999 17:54:27 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5580@lists.php.net to get a copy of this message | ||
Date: Wednesday May 12, 1999 @ 13:54
Author: sas
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv16777/functions
Modified Files:
dba_db2.c
Log Message:
autoconf work for DBA module, Sleepycat changed the interface in DB 2.6.4
Index: php3/functions/dba_db2.c
diff -u php3/functions/dba_db2.c:1.7 php3/functions/dba_db2.c:1.8
--- php3/functions/dba_db2.c:1.7 Mon May 10 16:50:19 1999
+++ php3/functions/dba_db2.c Wed May 12 13:54:26 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dba_db2.c,v 1.7 1999/05/10 20:50:19 sas Exp $ */
+/* $Id: dba_db2.c,v 1.8 1999/05/12 17:54:26 sas Exp $ */
#include "php.h"
@@ -163,8 +163,11 @@
}
dba->cursor = NULL;
-
+#if (DB_VERSION_MAJOR > 2) || (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 6) ||
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 6 && DB_VERSION_PATCH >= 4)
+ if(dba->dbp->cursor(dba->dbp, NULL, &dba->cursor, 0)) {
+#else
if(dba->dbp->cursor(dba->dbp, NULL, &dba->cursor)) {
+#endif
return NULL;
}
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net