mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
-Fix memory handling of persistent dba connections.
-Update tests. # cdb and flatfile still FAIL for dba_popen since the known streams problem
This commit is contained in:
parent
710e49a30b
commit
efd314e767
11 changed files with 65 additions and 51 deletions
|
@ -78,14 +78,14 @@ DBA_OPEN_FUNC(dbm)
|
|||
return FAILURE;
|
||||
}
|
||||
|
||||
info->dbf = emalloc(sizeof(dba_dbm_data));
|
||||
info->dbf = pemalloc(sizeof(dba_dbm_data), info->flags&DBA_PERSISTENT);
|
||||
memset(info->dbf, 0, sizeof(dba_dbm_data));
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
DBA_CLOSE_FUNC(dbm)
|
||||
{
|
||||
efree(info->dbf);
|
||||
pefree(info->dbf, info->flags&DBA_PERSISTENT);
|
||||
dbmclose();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue