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>- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Zak Greant
- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Torben Wilson
- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Torben Wilson
- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Torben Wilson
- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Andrew Lindeman
- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Torben Wilson
- Re: [PHP-DOC] cvs: phpdoc /en/functions filesystem... Andrew L.
- Re: [PHP-DOC] cvs: phpdoc /en/functions filesy... Lars Torben Wilson
- Re: [PHP-DOC] cvs: phpdoc /en/functions fi... Andrew L.
- Re: [PHP-DOC] cvs: phpdoc /en/function... Lars Torben Wilson
- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Torben Wilson
- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Torben Wilson
- [PHP-DOC] Re: cvs: phpdoc /en/functions filesystem... Jim Winstead
- Re: [PHP-DOC] Re: cvs: phpdoc /en/functions fi... Lars Torben Wilson
- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Torben Wilson
- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Sander Roobol
- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Philip Olson
- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Thomas Schoefbeck
- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Philip Olson
- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Andrew Lindeman
- [PHP-DOC] cvs: phpdoc /en/functions filesystem.xml Wez Furlong
