mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 17:12:22 +01:00
29 lines
629 B
PHP
29 lines
629 B
PHP
--TEST--
|
|
Session bad configurations, prefix
|
|
--SKIPIF--
|
|
<?php
|
|
include dirname(__FILE__) . "/skipif.inc";
|
|
if (!Memcached::HAVE_SESSION) print "skip";
|
|
?>
|
|
--INI--
|
|
memcached.sess_locking = on
|
|
memcached.sess_prefix = "memc.sess.key."
|
|
session.save_handler = "memcached"
|
|
|
|
--FILE--
|
|
<?php
|
|
ob_start();
|
|
|
|
include dirname (__FILE__) . '/config.inc';
|
|
ini_set ('session.save_path', MEMC_SERVER_HOST . ':' . MEMC_SERVER_PORT);
|
|
|
|
ini_set('memcached.sess_prefix', " \n");
|
|
session_start();
|
|
session_write_close();
|
|
|
|
echo "OK";
|
|
|
|
--EXPECTF--
|
|
Warning: ini_set(): memcached.sess_prefix cannot contain whitespace or control characters in %s on line %d
|
|
OK
|