helly Thu Mar 20 14:54:22 2003 EDT
Modified files:
/php4/ext/dba dba.c
Log:
CS
Index: php4/ext/dba/dba.c
diff -u php4/ext/dba/dba.c:1.86 php4/ext/dba/dba.c:1.87
--- php4/ext/dba/dba.c:1.86 Tue Mar 4 18:45:48 2003
+++ php4/ext/dba/dba.c Thu Mar 20 14:54:22 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dba.c,v 1.86 2003/03/04 23:45:48 helly Exp $ */
+/* $Id: dba.c,v 1.87 2003/03/20 19:54:22 helly Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -315,11 +315,21 @@
*/
static void dba_close(dba_info *info TSRMLS_DC)
{
- if (info->hnd) info->hnd->close(info TSRMLS_CC);
- if (info->path) pefree(info->path, info->flags&DBA_PERSISTENT);
- if (info->fp && info->fp!=info->lock.fp) php_stream_close(info->fp);
- if (info->lock.fp) php_stream_close(info->lock.fp);
- if (info->lock.name) pefree(info->lock.name, info->flags&DBA_PERSISTENT);
+ if (info->hnd) {
+ info->hnd->close(info TSRMLS_CC);
+ }
+ if (info->path) {
+ pefree(info->path, info->flags&DBA_PERSISTENT);
+ }
+ if (info->fp && info->fp!=info->lock.fp) {
+ php_stream_close(info->fp);
+ }
+ if (info->lock.fp) {
+ php_stream_close(info->lock.fp);
+ }
+ if (info->lock.name) {
+ pefree(info->lock.name, info->flags&DBA_PERSISTENT);
+ }
pefree(info, info->flags&DBA_PERSISTENT);
}
/* }}} */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php