ID: 25115
Updated by: [EMAIL PROTECTED]
Reported By: courtois at nouvo dot com
-Status: Open
+Status: Duplicate
Bug Type: DBM/DBA related
Operating System: win32
PHP Version: 4.3.2
-Assigned To:
+Assigned To: helly
New Comment:
Duplicate of #23957
Previous Comments:
------------------------------------------------------------------------
[2003-08-18 09:54:08] courtois at nouvo dot com
could this bug be related with #23975 ???
I tested also the latest CVS package:
php4-win32-STABLE-200308181230.zip
same results :-(
------------------------------------------------------------------------
[2003-08-17 06:51:11] courtois at nouvo dot com
Description:
------------
db3 open doesn't work with a path including directories.
windows XP
Apache 2
PHP 4.3.2 zip package [6,107Kb] - 29 May 2003 (from www.php.net)
Reproduce code:
---------------
<?php
header('Content-type: text/plain');
mkdir("foobar",0755);
print "testflat :";
if ($id = dba_open ("testflat", "n", "flatfile")) { print "ok\n";
dba_close ($id); } else print "not ok\n";
print "testdb3 :";
if ($id = dba_open ("testdb3", "n", "db3")) { print "ok\n"; dba_close
($id); } else print "not ok\n";
print "foobar/testflat :";
if ($id = dba_open ("foobar/testflat", "n", "flatfile")) { print
"ok\n"; dba_close ($id); } else print "not ok\n";
print "foobar/testdb3";
if ($id = dba_open ("foobar/testdb3", "n", "db3")) { print "ok\n";
dba_close ($id); } else print "not ok\n";
chdir("foobar");
print "change to dir foobar\n";
print "foobar/testflat-cd :";
if ($id = dba_open ("testflat-cd", "n", "flatfile")) { print "ok\n";
dba_close ($id); } else print "not ok\n";
print "foobar/testdb3-cd :";
if ($id = dba_open ("testdb3-cd", "n", "db3")) { print "ok\n";
dba_close ($id); } else print "not ok\n";
?>
Expected result:
----------------
I expect foobar/testdb3 to be opened correctly.
same result when / is replaced with \
Actual result:
--------------
testflat :ok
testdb3 :ok
foobar/testflat :ok
foobar/testdb3<br />
<b>Warning</b>: dba_open(foobar/testdb3,n): Driver initialization
failed for handler: db3: No such file or directory in <b>C:\Program
Files\Apache Group\Apache2\htdocs\testdba.php</b> on line <b>17</b><br
/>
not ok
change to dir foobar
foobar/testflat-cd :ok
foobar/testdb3-cd :ok
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25115&edit=1