]> granicus.if.org Git - php/commit
Need a PHPAPI version of basename for some stuff I am working on.
authorRasmus Lerdorf <rasmus@php.net>
Tue, 23 May 2000 20:16:14 +0000 (20:16 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Tue, 23 May 2000 20:16:14 +0000 (20:16 +0000)
commit7182e722caee1336e5f3ca4291a8466e0c8c859b
tree69c2ef40e62fac39229fe67d7fa0a9e401c25284
parentee82f87cbfce7b12044e623e050143a75acb62a5
Need a PHPAPI version of basename for some stuff I am working on.
Also fixed a bug along the way in the basename function.  If it
was fed something like "filename.ext/////" it would return the string
with all the slashes whereas if you fed it "/path/filename.ext////" it
would get it right.
@ Fixed basename() bug where "file.ext///" would not return the same
@ as "/path/file.ext///" (Rasmus)
ext/standard/php_string.h
ext/standard/string.c