ID: 15130
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Filesystem function related
Operating System: FreeBSD
PHP Version: 4.1.1
New Comment:

how can you possibly suggest that bar/baz

is the file extension of "/foo/bar.bar/baz"

by that logic recombining the parts gets you

/foo/bar.bar/baz.bar/baz

as the filename!


I've added a comment with a php replacement and some examples of the
broken output at

http://www.php.net/manual/en/function.pathinfo.php










Previous Comments:
------------------------------------------------------------------------

[2002-01-20 22:19:41] [EMAIL PROTECTED]

That's the correct output of pathinfo (and print_r).

See http://www.php.net/manual/en/function.pathinfo.php

Status -> Bogus

------------------------------------------------------------------------

[2002-01-20 20:27:56] [EMAIL PROTECTED]

Hi,


print_r(pathinfo("/foo/bar.bar/baz"));  

Array ( 
  [dirname] => /foo/bar.bar 
  [basename] => baz 
  [extension] => bar/baz 
)
 



 

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=15130&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to