Skip to content

Commit 1c604a5

Browse files
GirgiasTimWolla
andcommitted
Use NUL spelling
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
1 parent 2ab18e1 commit 1c604a5

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
@@ -663,11 +663,11 @@ static PHP_INI_MH(OnUpdateName) /* {{{ */
663663
}
664664
return FAILURE;
665665
}
666-
/* Nul bytes are not allowed */
666+
/* NUL bytes are not allowed */
667667
if (ZSTR_LEN(new_value) != strlen(ZSTR_VAL(new_value))) {
668668
/* Do not output error when restoring ini options. */
669669
if (stage != ZEND_INI_STAGE_DEACTIVATE) {
670-
php_error_docref(NULL, err_type, "session.name \"%s\" cannot contain nul bytes", ZSTR_VAL(new_value));
670+
php_error_docref(NULL, err_type, "session.name \"%s\" cannot contain NUL bytes", ZSTR_VAL(new_value));
671671
}
672672
return FAILURE;
673673
}

0 commit comments

Comments
 (0)