1--TEST-- 2Test session_start() errors 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--FILE-- 6<?php 7 8ob_start(); 9 10try { 11 session_start(['option' => new stdClass()]); 12} catch (TypeError $exception) { 13 echo $exception->getMessage() . "\n"; 14} 15 16var_dump(session_start(['option' => false])); 17 18ob_end_flush(); 19 20?> 21--EXPECTF-- 22session_start(): Option "option" must be of type string|int|bool, stdClass given 23 24Warning: session_start(): Setting option "option" failed in %s on line %d 25bool(true) 26