Files
php-memcached/tests/addserver_unixdomain.phpt
Pavel Djundik 7348cc11f7 Move working tests up a folder (#503)
Tests in the experimental/ folder were not executed on CI. The ones that work move up, the few
that remain in experimental/ need further investigation to get working or remove.
2023-04-27 08:35:07 -07:00

19 lines
460 B
PHP

--TEST--
Memcached::addServer() unix doamin socket
--SKIPIF--
<?php include "skipif.inc";?>
--CLEAN--
<?php
unlink('/tmp/memc_test_unix_socket');
--FILE--
<?php
$fh = stream_socket_server('unix:///tmp/memc_test_unix_socket');
$m = new Memcached();
$m->setOption(Memcached::OPT_CONNECT_TIMEOUT, 1);
$m->setOption(Memcached::OPT_SEND_TIMEOUT, 1);
$m->setOption(Memcached::OPT_RECV_TIMEOUT, 1);
$m->addServer('/tmp/memc_test_unix_socket', 11211, 1);
--EXPECT--