diff options
author | Andrei Zmievski <andrei@php.net> | 2000-09-11 13:54:59 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2000-09-11 13:54:59 +0000 |
commit | 5abacc5413420c4aae53a2e8a61feaf6387da2d2 (patch) | |
tree | fbca29ab2db261a2157259a12ca5ec0c0683e1c4 /ext/standard/string.c | |
parent | 5ed3e24f47674036b0c02ff6b99abc78e97b815d (diff) | |
download | php-git-5abacc5413420c4aae53a2e8a61feaf6387da2d2.tar.gz |
(PHP pathinfo) Fixed more typos.
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r-- | ext/standard/string.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index c1e2da7948..fc538b1f88 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -741,7 +741,7 @@ PHP_FUNCTION(pathinfo) if (argc > 1) { convert_to_long_ex(uopt); opt = Z_LVAL_PP(uopt); - if (opt < PHP_PATHINFO_BASENAME || opt > PHP_PATHINFO_EXTENSION) { + if (opt < PHP_PATHINFO_DIRNAME || opt > PHP_PATHINFO_EXTENSION) { php_error(E_WARNING, "Invalid option in call to %s()", get_active_function_name()); return; @@ -751,7 +751,7 @@ PHP_FUNCTION(pathinfo) MAKE_STD_ZVAL(tmp); array_init(tmp); - if (opt == PHP_PATHINFO_BASENAME || argc < 2) { + if (opt == PHP_PATHINFO_DIRNAME || argc < 2) { ret = estrndup(Z_STRVAL_PP(path), len); php_dirname(ret, len); if (*ret) @@ -759,7 +759,7 @@ PHP_FUNCTION(pathinfo) efree(ret); } - if (opt == PHP_PATHINFO_DIRNAME || argc < 2) { + if (opt == PHP_PATHINFO_BASENAME || argc < 2) { ret = php_basename(Z_STRVAL_PP(path), len); add_assoc_string(tmp, "basename", ret, 0); } |