summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2001-04-13 18:23:07 +0000
committerThies C. Arntzen <thies@php.net>2001-04-13 18:23:07 +0000
commit86c5460229fc46c7d897d6232c1b5b635e476d31 (patch)
tree82415b227b6bdbe0b2c0476d4030e5fab2db0be1
parent8fcc3a31406c5fa3a8e3bf0fc4cf1f7c80c69c3e (diff)
downloadphp-git-86c5460229fc46c7d897d6232c1b5b635e476d31.tar.gz
@- Fixed crash in pathinfo()
-rw-r--r--ext/standard/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 77172441f3..ee632b1636 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -902,7 +902,7 @@ PHP_FUNCTION(pathinfo)
int idx;
p = strrchr(Z_STRVAL_PP(path), '.');
- if (*p) {
+ if (p) {
idx = p - Z_STRVAL_PP(path);
add_assoc_stringl(tmp, "extension", Z_STRVAL_PP(path) + idx + 1, len - idx - 1, 1);
}