|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-09-14 01:37 UTC] pookey at pookey dot co dot uk
Description: ------------ where the use of dba_open works, dba_popen does not. http://xian.ncuk.net/test/bug.php http://xian.ncuk.net/test/bug.phps Reproduce code: --------------- $file = dirname(__FILE__) . '/dbtest.db'; $db = dba_open($file, "c", "db4"); dba_insert('moo', 'baa', $db); $value = dba_fetch('moo', $db); echo "<b>non-persistant check:</b> $value <hr />"; dba_sync($db); dba_close($db); $db = dba_popen($file, "c", "db4"); $value = dba_fetch('moo', $db); echo "<b>persistant check:</b> $value <hr />"; dba_close($db); $db = dba_open($file, "c", "db4"); $value = dba_fetch('moo', $db); echo "<b>non-persistant check:</b> $value <hr />"; dba_delete('moo', $db); dba_close($db); Expected result: ---------------- all 3 echo statements ina bove should print 'baa'. Actual result: -------------- the middle echo statement doesn't print baa PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 20:00:02 2025 UTC |
RCS file: /repository/php-src/ext/dba/dba_db4.c,v revision 1.10 date: 2003/06/21 18:16:38; author: helly; state: Exp; lines: +4 -0 When persistent then we may use threads Removing this part: + if (info->flags & DBA_PERSISTENT) { + gmode |= DB_THREAD; + } + Makes dba_fetch() work with db4 driver also if opened in persistent mode.