summaryrefslogtreecommitdiff
path: root/ext/standard/php_string.h
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2000-05-23 20:16:14 +0000
committerRasmus Lerdorf <rasmus@php.net>2000-05-23 20:16:14 +0000
commit7182e722caee1336e5f3ca4291a8466e0c8c859b (patch)
tree69c2ef40e62fac39229fe67d7fa0a9e401c25284 /ext/standard/php_string.h
parentee82f87cbfce7b12044e623e050143a75acb62a5 (diff)
downloadphp-git-7182e722caee1336e5f3ca4291a8466e0c8c859b.tar.gz
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)
Diffstat (limited to 'ext/standard/php_string.h')
-rw-r--r--ext/standard/php_string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/php_string.h b/ext/standard/php_string.h
index 3c894f1504..14a3195fd2 100644
--- a/ext/standard/php_string.h
+++ b/ext/standard/php_string.h
@@ -100,6 +100,7 @@ PHPAPI char *php_addslashes(char *str, int length, int *new_length, int freeit);
PHPAPI char *php_addcslashes(char *str, int length, int *new_length, int freeit, char *what, int wlength);
PHPAPI void php_stripslashes(char *str, int *len);
PHPAPI void php_stripcslashes(char *str, int *len);
+PHPAPI void php_basename(char *str, int len);
PHPAPI void php_dirname(char *str, int len);
PHPAPI char *php_stristr(unsigned char *s, unsigned char *t, size_t s_len, size_t t_len);
PHPAPI char *php_str_to_str(char *haystack, int length, char *needle,