nlopess         Sat Apr  3 11:00:57 2004 EDT

  Modified files:              
    /phpdoc/en/reference/filesystem/functions   dirname.xml 
  Log:
  fix #20895
  dirname changed its behaviour
  
http://cvs.php.net/diff.php/phpdoc/en/reference/filesystem/functions/dirname.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc/en/reference/filesystem/functions/dirname.xml
diff -u phpdoc/en/reference/filesystem/functions/dirname.xml:1.6 
phpdoc/en/reference/filesystem/functions/dirname.xml:1.7
--- phpdoc/en/reference/filesystem/functions/dirname.xml:1.6    Mon Dec 15 11:49:45 
2003
+++ phpdoc/en/reference/filesystem/functions/dirname.xml        Sat Apr  3 11:00:56 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
   <refentry id="function.dirname">
    <refnamediv>
@@ -49,6 +49,25 @@
      </para>
     </note>
     <para>
+     <function>dirname</function> has changed its behaviour in PHP 4.3.0.
+     Check the following examples:
+     <informalexample>
+      <programlisting role="php">
+<![CDATA[
+<?php
+
+//before PHP 4.3.0
+dirname('c:/'); // returned '.'
+
+//after PHP 4.3.0
+dirname('c:/'); // returns 'c:'
+
+?>
+]]>
+      </programlisting>
+     </informalexample>
+    </para>
+    <para>
      See also <function>basename</function>, <function>pathinfo</function>, 
      and <function>realpath</function>.
     </para>

Reply via email to