summaryrefslogtreecommitdiff
path: root/ext/standard/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r--ext/standard/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index 6f7042ecc5..970a8309ae 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -2041,7 +2041,7 @@ PHP_FUNCTION(fgetcsv)
}
convert_to_string_ex(p_delim);
/* Make sure that there is at least one character in string */
- if ((*p_delim)->value.str.len < 1) {
+ if (Z_STRLEN_PP(p_delim) < 1) {
WRONG_PARAM_COUNT;
}
/* use first character from string */