#34495 [NEW]: dba_popen doens't appear to work

From: Date: Tue, 13 Sep 2005 23:37:13 +0000
Subject: #34495 [NEW]: dba_popen doens't appear to work
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85004@lists.php.net to get a copy of this message
From: pookey at pookey dot co dot uk Operating system: Linux PHP version: 5.0.5 PHP Bug Type: DBM/DBA related Bug description: dba_popen doens't appear to work 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 -- Edit bug report at http://bugs.php.net/?id=34495&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34495&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34495&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34495&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34495&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34495&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34495&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34495&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34495&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34495&r=support Expected behavior: http://bugs.php.net/fix.php?id=34495&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34495&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34495&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34495&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34495&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34495&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34495&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34495&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34495&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34495&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34495&r=mysqlcfg

« previous php.bugs (#85004) next »