Skip to content

Commit 5868ace

Browse files
kocsismatecmb69
andcommitted
Fix the default parameter values of session_set_save_handler()
Co-Authored-By: Christoph M. Becker <cmbecker69@gmx.de>
1 parent 0a408be commit 5868ace

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

ext/session/session.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function session_register_shutdown(): void {}
3737
/** @alias session_write_close */
3838
function session_commit(): bool {}
3939

40-
function session_set_save_handler($open, $close = null, $read = null, $write = null, $destroy = null, $gc = null, $create_sid = null, $validate_sid = null, $update_timestamp = null): bool {}
40+
function session_set_save_handler($open, $close = UNKNOWN, $read = UNKNOWN, $write = UNKNOWN, $destroy = UNKNOWN, $gc = UNKNOWN, $create_sid = UNKNOWN, $validate_sid = UNKNOWN, $update_timestamp = UNKNOWN): bool {}
4141

4242
function session_cache_limiter(string $cache_limiter = UNKNOWN): string|false {}
4343

ext/session/session_arginfo.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ ZEND_END_ARG_INFO()
5858

5959
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_session_set_save_handler, 0, 1, _IS_BOOL, 0)
6060
ZEND_ARG_INFO(0, open)
61-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, close, "null")
62-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, read, "null")
63-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, write, "null")
64-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, destroy, "null")
65-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, gc, "null")
66-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, create_sid, "null")
67-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, validate_sid, "null")
68-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, update_timestamp, "null")
61+
ZEND_ARG_INFO(0, close)
62+
ZEND_ARG_INFO(0, read)
63+
ZEND_ARG_INFO(0, write)
64+
ZEND_ARG_INFO(0, destroy)
65+
ZEND_ARG_INFO(0, gc)
66+
ZEND_ARG_INFO(0, create_sid)
67+
ZEND_ARG_INFO(0, validate_sid)
68+
ZEND_ARG_INFO(0, update_timestamp)
6969
ZEND_END_ARG_INFO()
7070

7171
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_session_cache_limiter, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)

0 commit comments

Comments
 (0)