1--TEST-- 2Bug #80889 (Cannot set save handler when save_handler is invalid) 3--EXTENSIONS-- 4session 5--SKIPIF-- 6<?php include('skipif.inc'); ?> 7--INI-- 8session.save_handler=whatever 9--FILE-- 10<?php 11$initHandler = ini_get('session.save_handler'); 12session_set_save_handler( 13 function ($savePath, $sessionName) { 14 return true; 15 }, 16 function () { 17 return true; 18 }, 19 function ($id) { 20 return ''; 21 }, 22 function ($id, $data) { 23 return true; 24 }, 25 function ($id) { 26 return true; 27 }, 28 function ($maxlifetime) { 29 return true; 30 } 31); 32$setHandler = ini_get('session.save_handler'); 33var_dump($initHandler, $setHandler); 34?> 35--EXPECT-- 36string(8) "whatever" 37string(4) "user" 38