Skip to content

Commit c924bfa

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

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

ext/session/session.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -804,17 +804,6 @@ static PHP_INI_MH(OnUpdateSidBits) /* {{{ */
804804
}
805805
/* }}} */
806806

807-
808-
static PHP_INI_MH(OnUpdateLazyWrite) /* {{{ */
809-
{
810-
SESSION_CHECK_ACTIVE_STATE;
811-
SESSION_CHECK_OUTPUT_STATE;
812-
return OnUpdateBool(entry, new_value, mh_arg1, mh_arg2, mh_arg3, stage);
813-
}
814-
/* }}} */
815-
816-
817-
818807
static PHP_INI_MH(OnUpdateRfc1867Freq) /* {{{ */
819808
{
820809
int tmp = ZEND_ATOL(ZSTR_VAL(new_value));
@@ -859,7 +848,7 @@ PHP_INI_BEGIN()
859848
PHP_INI_ENTRY("session.use_trans_sid", "0", PHP_INI_ALL, OnUpdateTransSid)
860849
PHP_INI_ENTRY("session.sid_length", "32", PHP_INI_ALL, OnUpdateSidLength)
861850
PHP_INI_ENTRY("session.sid_bits_per_character", "4", PHP_INI_ALL, OnUpdateSidBits)
862-
STD_PHP_INI_BOOLEAN("session.lazy_write", "1", PHP_INI_ALL, OnUpdateLazyWrite, lazy_write, php_ps_globals, ps_globals)
851+
STD_PHP_INI_BOOLEAN("session.lazy_write", "1", PHP_INI_ALL, OnUpdateSessionBool, lazy_write, php_ps_globals, ps_globals)
863852

864853
/* Upload progress */
865854
STD_PHP_INI_BOOLEAN("session.upload_progress.enabled",

0 commit comments

Comments
 (0)