Skip to content

Commit a2b8204

Browse files
committed
Add comment
Closes phpGH-17274.
1 parent 7626e88 commit a2b8204

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_ini.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@ static zend_ulong zend_ini_parse_quantity_internal(zend_string *value, zend_ini_
701701
return 0;
702702
}
703703
digits += 2;
704+
/* STRTOULL may silently ignore a prefix of whitespace, sign, and base prefix, which would be invalid at this position */
704705
if (UNEXPECTED(digits == str_end || digits != zend_ini_consume_quantity_prefix(digits, str_end, base))) {
705706
/* Escape the string to avoid null bytes and to make non-printable chars
706707
* visible */

0 commit comments

Comments
 (0)