Skip to content

Commit a784b17

Browse files
committed
apply review suggestions
1 parent e210de8 commit a784b17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/html.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,8 +1320,8 @@ static void php_html_entities(INTERNAL_FUNCTION_PARAMETERS, int all)
13201320
Z_PARAM_BOOL(double_encode);
13211321
ZEND_PARSE_PARAMETERS_END();
13221322

1323-
if (str->len == 0) {
1324-
RETVAL_STR(str);
1323+
if (EXPECTED(ZSTR_LEN(str) == 0)) {
1324+
RETVAL_STR_COPY(str);
13251325
return;
13261326
}
13271327
replaced = php_escape_html_entities_ex(

0 commit comments

Comments
 (0)