#38187 [Opn->Csd]: Example update for pathinfo()

From: Date: Sat, 22 Jul 2006 15:33:05 +0000
Subject: #38187 [Opn->Csd]: Example update for pathinfo()
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969373554@lists.php.net to get a copy of this message
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

« previous php.doc (#969373554) next »