Skip to content

Commit e9749a3

Browse files
committed
Remove OnUpdateLazyWrite validator
It is identical to the OnUpdateSessionBool one
1 parent a75de16 commit e9749a3

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

ext/session/session.c

+1-12
Original file line numberDiff line numberDiff line change
@@ -766,17 +766,6 @@ static PHP_INI_MH(OnUpdateSidBits) /* {{{ */
766766
}
767767
/* }}} */
768768

769-
770-
static PHP_INI_MH(OnUpdateLazyWrite) /* {{{ */
771-
{
772-
SESSION_CHECK_ACTIVE_STATE;
773-
SESSION_CHECK_OUTPUT_STATE;
774-
return OnUpdateBool(entry, new_value, mh_arg1, mh_arg2, mh_arg3, stage);
775-
}
776-
/* }}} */
777-
778-
779-
780769
static PHP_INI_MH(OnUpdateRfc1867Freq) /* {{{ */
781770
{
782771
int tmp = ZEND_ATOL(ZSTR_VAL(new_value));
@@ -821,7 +810,7 @@ PHP_INI_BEGIN()
821810
PHP_INI_ENTRY("session.use_trans_sid", "0", PHP_INI_ALL, OnUpdateTransSid)
822811
PHP_INI_ENTRY("session.sid_length", "32", PHP_INI_ALL, OnUpdateSidLength)
823812
PHP_INI_ENTRY("session.sid_bits_per_character", "4", PHP_INI_ALL, OnUpdateSidBits)
824-
STD_PHP_INI_BOOLEAN("session.lazy_write", "1", PHP_INI_ALL, OnUpdateLazyWrite, lazy_write, php_ps_globals, ps_globals)
813+
STD_PHP_INI_BOOLEAN("session.lazy_write", "1", PHP_INI_ALL, OnUpdateSessionBool, lazy_write, php_ps_globals, ps_globals)
825814

826815
/* Upload progress */
827816
STD_PHP_INI_BOOLEAN("session.upload_progress.enabled",

0 commit comments

Comments
 (0)