#34495 [Fbk->Opn]: dba_popen doens't appear to work
| From: | pookey at pookey dot co dot uk | Date: | Wed, 14 Sep 2005 11:28:04 +0000 |
| Subject: | #34495 [Fbk->Opn]: dba_popen doens't appear to work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85025@lists.php.net to get a copy of this message | ||
ID: 34495
User updated by: pookey at pookey dot co dot uk
Reported By: pookey at pookey dot co dot uk
-Status: Feedback
+Status: Open
Bug Type: DBM/DBA related
Operating System: Linux
PHP Version: 5.0.5
New Comment:
This was origionally tested in 5.0.4 and 5.0.5, and now
it's also been tested under 5.1RC. (thanks for a friend
running 5.1RC1)
Please let me know where in the commit history you think
things have been changed, I can't see anything.
http://cvs.php.net/php-src/ext/dba/dba_db4.c
I've spent over 2 hours on this now, and i think it's
somewhat unfair to tell me to compile the latest snapshot
- assuming I have the resources to do so. I would have
assumed also that you have servers with the latest
snapshot? This test script is easily recreated, I've gone
to the effort of providing a cut down example, a URL
producing the error, and extended source at the URL to
demonstrate the issue, and the 'try latest CVS snapshot'
answer, when nothing to do with dba is far from
appreciated.
Many thanks for your continued efforts to improving PHP.
Kind Regards,
Ian
Previous Comments:
------------------------------------------------------------------------
[2005-09-14 08:15:10] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-09-14 03:04:01] pookey at pookey dot co dot uk
I've updated this page with a lot more information:
http://xian.ncuk.net/test/bug.php
It appears it's just db4 with the problem
------------------------------------------------------------------------
[2005-09-14 01:37:12] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34495&edit=1