mirror of
https://github.com/php-win-ext/pecl-memcache.git
synced 2026-03-24 00:52:07 +01:00
20 lines
342 B
PHP
20 lines
342 B
PHP
--TEST--
|
|
PECL bug #16536 (Weight of 0 causes SegFault on memcache_add_server)
|
|
--SKIPIF--
|
|
<?php include 'connect.inc'; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
include 'connect.inc';
|
|
|
|
$mmc = new Memcache;
|
|
var_dump(@$mmc->addServer($host, $port, true, 0));
|
|
var_dump(@$mmc->set('TEST_KEY', 'test_value'));
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
bool(false)
|
|
bool(false)
|
|
Done
|