What was the thinking behind this bit of code from dirname()
(ext/standard/string.c:799):
PHPAPI void php_dirname(char *path, int len)
{
...
/* Strip trailing slashes */ <--- This?
while (end >= path && IS_SLASH(*end)) {
end--;
}
Why are we stripping trailing slashes? My thought is that if we have
something like this:
/etc/passwd/ == Directory
/etc/passwd == File
Or was this discussed before I started reading the list?
Thanks,
--
===================================================================
Sean Bright
[EMAIL PROTECTED] / [EMAIL PROTECTED] / http://www.seanbright.com/
===================================================================
--
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]