From:             steveb at talltree dot com
Operating system: Windows XP
PHP version:      4.3.2
PHP Bug Type:     IIS related
Bug description:  chdir doesn't affect dba_open

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 bug report at http://bugs.php.net/?id=24317&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24317&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24317&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24317&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24317&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24317&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24317&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24317&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24317&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24317&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24317&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24317&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24317&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24317&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24317&r=gnused

Reply via email to