|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-23 09:50 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 21:00:01 2025 UTC |
Description: ------------ pathinfo() can't handle relative path like /dir/subdir1/../subdir2/file.ext Reproduce code: --------------- $path_parts = pathinfo('/dir/subdir1/../subdir2/file.ext'); print_r($path_parts); Expected result: ---------------- Array ( [dirname] => /dir/subdir2 [basename] => index.html [extension] => html ) Actual result: -------------- Array ( [dirname] => /dir/subdir1/../subdir2 [basename] => index.html [extension] => html )