Skip to content

Commit f54f464

Browse files
committed
update existing test
1 parent 387a3df commit f54f464

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ext/session/tests/session_start_error.phpt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,22 @@ try {
1515
echo $exception->getMessage() . "\n";
1616
}
1717

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+
1826
var_dump(session_start(['option' => false]));
1927

2028
ob_end_flush();
2129

2230
?>
2331
--EXPECTF--
2432
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
2534

2635
Warning: session_start(): Setting option "option" failed in %s on line %d
2736
bool(true)

0 commit comments

Comments
 (0)