summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}