File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / network / bug64330.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Sun Jun 15 20:03:59 2014 UTC (10 years ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29, HEAD
php 5.4.29

--TEST--
Bug #64330 (stream_socket_server() creates wrong Abstract Namespace UNIX sockets)
--SKIPIF--
<?php
if (!in_array("unix", stream_get_transports())) die("SKIP unix domain sockets unavailable");
if (!stristr(PHP_OS, "Linux")) die('skip abstract namespace is a Linux-only feature');
?>
--FILE--
<?php
echo "Test\n";
$server = stream_socket_server("unix://\x00/MyBindName");
$client = stream_socket_client("unix://\x00/MyBindName");
if ($client) {
	echo "ok\n";
}
?>
===DONE===
--EXPECT--
Test
ok
===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>