Hi all,

just a question why this [1] is not a bug? Well, we know why PHP is doing this, but IMHO that's not correct.

As of my understanding this function just split a given path in parts. The given path parameter is complete independend from the local filesystem (or os?). It can also be the path componente of an (ftp) URI.

So, why depends the return value in this one case on the local filesystem and without any info in the documentation?

For example if I use the result of this function in a dynamic generated pdf file for a documentation. It's also not possible to have a correct root for an URI. I must not use the result for a following local file access. A "\" is definitely not the same as "/". ( var_dump('\\' == '/'); ;-) )

BTW:
With dirname() you have the same behaviour.

Regards,
Carsten

[1] http://bugs.php.net/bug.php?id=41262

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to