CVS update: php3/functions
| From: | sas | Date: | Sun, 09 May 1999 14:33:03 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5438@lists.php.net to get a copy of this message | ||
Date: Sunday May 9, 1999 @ 10:33
Author: sas
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv8539
Modified Files:
dba_gdbm.c
Log Message:
this is persistent data, don't use emalloc
Index: php3/functions/dba_gdbm.c
diff -u php3/functions/dba_gdbm.c:1.5 php3/functions/dba_gdbm.c:1.6
--- php3/functions/dba_gdbm.c:1.5 Wed Apr 21 11:57:09 1999
+++ php3/functions/dba_gdbm.c Sun May 9 10:33:03 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dba_gdbm.c,v 1.5 1999/04/21 15:57:09 sas Exp $ */
+/* $Id: dba_gdbm.c,v 1.6 1999/05/09 14:33:03 sas Exp $ */
#include "php.h"
@@ -64,7 +64,7 @@
dbf = gdbm_open(info->path, 0, gmode, 0644, NULL);
if(dbf) {
- info->dbf = emalloc(sizeof(dba_gdbm_data));
+ info->dbf = malloc(sizeof(dba_gdbm_data));
memset(info->dbf, 0, sizeof(dba_gdbm_data));
((dba_gdbm_data *) info->dbf)->dbf = dbf;
return SUCCESS;
--
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