|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-26 12:04 UTC] sniper@php.net
[2003-06-28 09:46 UTC] helly@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
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.