summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerenc Kovacs <tyrael@php.net>2011-10-22 21:44:05 +0000
committerFerenc Kovacs <tyrael@php.net>2011-10-22 21:44:05 +0000
commit263ab7e2d43c18e82b321a0d64d67c78b3cd9e75 (patch)
tree025ac3b0e632a43dc2282f03791cabd64e3db42b
parent8bbbfadcfef82c3513adeb34ae8a19bf00af3317 (diff)
downloadphp-git-263ab7e2d43c18e82b321a0d64d67c78b3cd9e75.tar.gz
stream_socket_server("unix://..." has a length limit, so it is better to use the tmp dir instead of the current test dir for the socket file. see https://bugs.php.net/bug.php?id=60106
-rw-r--r--sapi/cli/tests/022.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cli/tests/022.phpt b/sapi/cli/tests/022.phpt
index eabb8bdf8d..0110220bee 100644
--- a/sapi/cli/tests/022.phpt
+++ b/sapi/cli/tests/022.phpt
@@ -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);