|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-07-12 06:30 UTC] joey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 21:00:01 2025 UTC |
<? $info = pathinfo("/foo/bar"); echo ($info["dirname"]."<br>\n"); echo ($info["basename"]."<br>\n"); echo ($info["extension"]."<br>\n"); ?> This should print: /foo<br> bar<br> <br> but will not return. <? $info = pathinfo("/foo/bar.baz"); echo ($info["dirname"]."<br>\n"); echo ($info["basename"]."<br>\n"); echo ($info["extension"]."<br>\n"); ?> prints<? $info = pathinfo("/foo/bar."); echo ($info["dirname"]."<br>\n"); echo ($info["basename"]."<br>\n"); echo ($info["extension"]."<br>\n"); ?> /foo<br> bar.baz<br> baz<br> as expected and <? $info = pathinfo("/foo/bar."); echo ($info["dirname"]."<br>\n"); echo ($info["basename"]."<br>\n"); echo ($info["extension"]."<br>\n"); ?> prints /foo<br> bar.<br> <br> as expected, it's only the case where there is no trailing . that pathinfo fails to work. The configure line is: './configure' '--with-config-file-path=/www/conf' '--enable-track-vars' '--with-apxs=/usr/apache/bin/apxs' '--with-oci8' '--enable-ftp' '--with-mysql' '--with-pgsql' '--enable-xml' '--enable-inline-optimization' '--disable-debug' '--with-zlib' '--enable-shared' '--with-gnu-ld' '--with-mcrypt'