ID: 49488 Updated by: j...@php.net Reported By: rasviar at gmail dot com -Status: Open +Status: Bogus Bug Type: URL related Operating System: Windows Xp PHP Version: 5.3.0 New Comment:
pathinfo() is filesystem function. It's not meant for URLs. RTFM.. Previous Comments: ------------------------------------------------------------------------ [2009-09-07 07:24:12] rasviar at gmail dot com Description: ------------ Try to use "pathinfo" function for retrieving filename from URL with only a base URL. For example 'http://www.abc.com/'. It must return a null value, but returning 'www.abc' which is wrong not a file. Reproduce code: --------------- <?php $url="http://www.abc.com/"; echo pathinfo($url,PATHINFO_FILENAME); ?> Expected result: ---------------- null Actual result: -------------- www.abc ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49488&edit=1