cvs: phpdoc /en/functions filesystem.xml

From: Date: Sun, 10 Feb 2002 00:59:02 +0000
Subject: cvs: phpdoc /en/functions filesystem.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969342167@lists.php.net to get a copy of this message
torben Sat Feb 9 19:59:02 2002 EDT Modified files: /phpdoc/en/functions filesystem.xml Log: Closes bug #14538: noted change in dirname() behaviour. Index: phpdoc/en/functions/filesystem.xml diff -u phpdoc/en/functions/filesystem.xml:1.120 phpdoc/en/functions/filesystem.xml:1.121 --- phpdoc/en/functions/filesystem.xml:1.120 Sat Feb 9 19:38:40 2002 +++ phpdoc/en/functions/filesystem.xml Sat Feb 9 19:59:02 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.120 $ --> +<!-- $Revision: 1.121 $ --> <reference id="ref.filesystem"> <title>Filesystem functions</title> <titleabbrev>Filesystem</titleabbrev> @@ -293,6 +293,20 @@ </programlisting> </example> </para> + <note> + <para> + In PHP 4.0.3, <function>dirname</function> was fixed to be + POSIX-compliant. Essentially, this means that if there are no + slashes in <parameter>path</parameter> , a dot + ('<literal>.</literal>') is returned, indicating the current + directory. Otherwise, the returned string is + <parameter>path</parameter> with any trailing + <literal>/component</literal> removed. Note that this means that + you will often get a slash or a dot back from + <function>dirname</function> in situations where the older + functionality would have given you the empty string. + </para> + </note> <para> See also: <function>basename</function> </para>

« previous php.doc (#969342167) next »