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