Skip to content

Commit 04df5ff

Browse files
GirgiasTimWolla
andauthored
Use NUL spelling
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
1 parent 0115b43 commit 04df5ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/session/session.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,11 +679,11 @@ static PHP_INI_MH(OnUpdateName) /* {{{ */
679679
}
680680
return FAILURE;
681681
}
682-
/* Nul bytes are not allowed */
682+
/* NUL bytes are not allowed */
683683
if (ZSTR_LEN(new_value) != strlen(ZSTR_VAL(new_value))) {
684684
/* Do not output error when restoring ini options. */
685685
if (stage != ZEND_INI_STAGE_DEACTIVATE) {
686-
php_error_docref(NULL, err_type, "session.name \"%s\" cannot contain nul bytes", ZSTR_VAL(new_value));
686+
php_error_docref(NULL, err_type, "session.name \"%s\" cannot contain NUL bytes", ZSTR_VAL(new_value));
687687
}
688688
return FAILURE;
689689
}

0 commit comments

Comments
 (0)