*/
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);
}
/* }}} */