mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 00:52:18 +01:00
See PHP Bug 71038 for details https://bugs.php.net/bug.php?id=71038 Added PHP 7.2.0alpha2 to Travis CI matrix
31 lines
771 B
PHP
31 lines
771 B
PHP
--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 < 70200) 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
|
|
session_start(): Failed to initialize storage module: memcached (path: )
|