관리-도구
편집 파일: session_badconf_servers.phpt
--TEST-- Session bad configurations, invalid save path (server list) --SKIPIF-- <?php include dirname(__FILE__) . "/skipif.inc"; if (!Memcached::HAVE_SESSION) print "skip"; if (PHP_VERSION_ID > 70100) print "skip"; ?> --INI-- session.save_handler = memcached --FILE-- <?php include dirname (__FILE__) . '/config.inc'; ini_set ('session.save_path', MEMC_SERVER_HOST . ':' . MEMC_SERVER_PORT); error_reporting(0); function handler($errno, $errstr) { echo "$errstr\n"; } set_error_handler('handler', E_ALL); ini_set('memcached.sess_prefix', 'memc.sess.key.'); ini_set('session.save_path', ''); session_start(); session_write_close(); --EXPECT-- session_start(): failed to parse session.save_path