ID:               38187
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Gentoo
 PHP Version:      Irrelevant
 New Comment:

patch applied, thanks.


Previous Comments:
------------------------------------------------------------------------

[2006-07-22 12:19:31] [EMAIL PROTECTED]

Description:
------------
The new constant PATHINFO_FILENAME was already added to the pathinfo()
docs, but the example was not updated, yet.

Index: en/reference/filesystem/functions/pathinfo.xml
===================================================================
RCS file:
/repository/phpdoc/en/reference/filesystem/functions/pathinfo.xml,v
retrieving revision 1.11
diff -u -p -d -r1.11 pathinfo.xml
--- en/reference/filesystem/functions/pathinfo.xml      17 Jul 2006
10:50:14 -0000      1.11
+++ en/reference/filesystem/functions/pathinfo.xml      22 Jul 2006
12:18:17 -0000
@@ -41,6 +41,7 @@ $path_parts = pathinfo('/www/htdocs/inde
 echo $path_parts['dirname'], "\n";
 echo $path_parts['basename'], "\n";
 echo $path_parts['extension'], "\n";
+echo $path_parts['filename'], "\n";   // since 5.2.0
 ?>
 ]]>
       </programlisting>
@@ -52,6 +53,7 @@ echo $path_parts['extension'], "\n";
 /www/htdocs
 index.html
 html
+index
 ]]>
       </screen>
      </example>




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38187&edit=1

Reply via email to