#24317 [Opn->Asn]: chdir doesn't affect dba_open

From: Date: Thu, 26 Jun 2003 17:04:24 +0000
Subject: #24317 [Opn->Asn]: chdir doesn't affect dba_open
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-42560@lists.php.net to get a copy of this message
ID: 24317 Updated by: sniper@php.net Reported By: steveb at talltree dot com -Status: Open +Status: Assigned -Bug Type: IIS related +Bug Type: DBM/DBA related Operating System: Windows XP PHP Version: 4.3.2 -Assigned To: +Assigned To: helly New Comment: If fopen() works, but dba_open() doesn't it's definately some DBA problem. Previous Comments: ------------------------------------------------------------------------ [2003-06-24 12:01:05] steveb at talltree dot com Description: ------------ Apparently, dba_open doesn't respect chdir in Windows 32. I filed this against IIS only because I believe it's Win32 specific - this problem doesn't reproduce on my web hosting provider's Linux/Apache server (running php 4.1). I don't think this bug has anything to do with the IIS server, as it reproduces from the CLI. I also observed that on the Unix box, dba_open("foo","w") will create "foo" if it doesn't exist, whereas on my Windows box you need to specify "n" or "c" to create a file. Don't know whether that's a version difference or a bug. Reproduce code: --------------- To reproduce: <? chdir("subdir"); fopen( "textfile", "w" ); dba_open( "database", "n", "db3" ); ?> Expected result: ---------------- "textfile" and "database" should both be created in "subdir". Actual result: -------------- "textfile" gets created in "subdir", but "database" is created in the parent directory. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24317&edit=1

« previous php.bugs (#42560) next »