#20895 [Opn->Csd]: dirname() behaviour changed

From: Date: Sat, 03 Apr 2004 15:51:16 +0000
Subject: #20895 [Opn->Csd]: dirname() behaviour changed
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969359917@lists.php.net to get a copy of this message
ID: 20895 Updated by: nlopess@php.net Reported By: gambier dot olivier at free dot fr -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Win 2000Pro SP3 PHP Version: 4.3.0RC2 New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2003-01-19 15:17:38] philip@php.net Don't assign bugs to me. ------------------------------------------------------------------------ [2003-01-02 20:34:51] nicos@php.net Okay since philip was around, I assign that to him. ------------------------------------------------------------------------ [2002-12-18 18:13:09] philip@php.net Okay, marking as a documentation bug. A <note> needs to exist in the dirname docs for windows users as the current POSIX <note> isn't accurate as of PHP 4.3.0... ------------------------------------------------------------------------ [2002-12-11 11:16:36] iliaa@php.net Suppose you have a file c:/file.txt and you want to open another file from the same directory. If dirname("c:/file.txt"); return '.', then fopen ("./another_file.txt") will fail because it is looking in the wrong directory, the current current directory. If it returns c:/ or c: then c: + / + file will resolve to the actual file and open it correctly. ------------------------------------------------------------------------ [2002-12-10 20:05:55] philip@php.net A couple people just tested this and get the same results as the bug report with 4.3.0RC2, please explain why this behavior changed. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/20895 -- Edit this bug report at http://bugs.php.net/?id=20895&edit=1

« previous php.doc (#969359917) next »