For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > July 2006 > #38187 [Opn->Csd]: Example update for pathinfo()









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #38187 [Opn->Csd]: Example update for pathinfo()
nlopess@php.net

2006-07-22, 6:57 pm

ID: 38187
Updated by: nlopess@php.net
Reported By: toby@php.net
-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] toby@php.net

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com