]> granicus.if.org Git - php/commitdiff
stream_socket_server("unix://..." has a length limit, so it is better to use the...
authorFerenc Kovacs <tyrael@php.net>
Sat, 22 Oct 2011 21:44:05 +0000 (21:44 +0000)
committerFerenc Kovacs <tyrael@php.net>
Sat, 22 Oct 2011 21:44:05 +0000 (21:44 +0000)
sapi/cli/tests/022.phpt

index eabb8bdf8d328ea1f1aa1f70658819c5f96bc4fb..0110220bee0685d1e2f881c45285b919b3bc30fc 100644 (file)
@@ -8,7 +8,7 @@ if (substr(PHP_OS, 0, 3) == "WIN") die("skip non windows test");
 --FILE--
 <?php
 $php = getenv("TEST_PHP_EXECUTABLE");
-$socket_file = dirname(__FILE__) . '/' . pathinfo(__FILE__, PATHINFO_FILENAME) . '.sock';
+$socket_file = tempnam(sys_get_temp_dir(), pathinfo(__FILE__, PATHINFO_FILENAME) . '.sock');
 $test_file = dirname(__FILE__) . '/' . pathinfo(__FILE__, PATHINFO_FILENAME) . '.inc';
 if (file_exists($socket_file)) {
        unlink($socket_file);