We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 387a3df commit f54f464Copy full SHA for f54f464
ext/session/tests/session_start_error.phpt
@@ -15,13 +15,22 @@ try {
15
echo $exception->getMessage() . "\n";
16
}
17
18
+$read_and_close = "false";
19
+
20
+try {
21
+ session_start([$read_and_close]);
22
+} catch (TypeError $exception) {
23
+ echo $exception->getMessage() . "\n";
24
+}
25
26
var_dump(session_start(['option' => false]));
27
28
ob_end_flush();
29
30
?>
31
--EXPECTF--
32
session_start(): Option "option" must be of type string|int|bool, stdClass given
33
+session_start(): Argument #1 ($options) must be of type array with keys as string
34
35
Warning: session_start(): Setting option "option" failed in %s on line %d
36
bool(true)
0 commit comments