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 8745f55881..e4e653bd1d 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -796,7 +796,7 @@ PHP_FUNCTION(pathinfo)
efree(ret);
}
- if (argc < 2 || opt == PHP_PATHINFO_BASENAME)
+ if (argc < 2 || opt == PHP_PATHINFO_BASENAME) {
ret = php_basename(Z_STRVAL_PP(path), len);
add_assoc_string(tmp, "basename", ret, 0);
}