From: [EMAIL PROTECTED] Operating system: Gentoo PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Example update for pathinfo()
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 bug report at http://bugs.php.net/?id=38187&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38187&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38187&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38187&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38187&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38187&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38187&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38187&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38187&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38187&r=support Expected behavior: http://bugs.php.net/fix.php?id=38187&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38187&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38187&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38187&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38187&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38187&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38187&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38187&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38187&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38187&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38187&r=mysqlcfg