Skip to content

Commit c486d3d

Browse files
GirgiasTimWolla
authored andcommitted
Use NUL spelling
Co-authored-by: Tim Düsterhus <[email protected]>
1 parent 79b6f98 commit c486d3d

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
@@ -696,11 +696,11 @@ static PHP_INI_MH(OnUpdateName) /* {{{ */
696696
}
697697
return FAILURE;
698698
}
699-
/* Nul bytes are not allowed */
699+
/* NUL bytes are not allowed */
700700
if (ZSTR_LEN(new_value) != strlen(ZSTR_VAL(new_value))) {
701701
/* Do not output error when restoring ini options. */
702702
if (stage != ZEND_INI_STAGE_DEACTIVATE) {
703-
php_error_docref(NULL, err_type, "session.name \"%s\" cannot contain nul bytes", ZSTR_VAL(new_value));
703+
php_error_docref(NULL, err_type, "session.name \"%s\" cannot contain NUL bytes", ZSTR_VAL(new_value));
704704
}
705705
return FAILURE;
706706
}

0 commit comments

Comments
 (0)