Bug #60106 [Opn]: stream_socket_server + long unix socket path = 'Unknown error'

From: Date: Fri, 21 Oct 2011 03:51:14 +0000
Subject: Bug #60106 [Opn]: stream_socket_server + long unix socket path = 'Unknown error'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-164484@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60106&edit=1 ID: 60106 Updated by: laruence@php.net Reported by: tyrael@php.net Summary: stream_socket_server + long unix socket path = 'Unknown error' Status: Open Type: Bug Package: Streams related Operating System: linux debian squeeze 64 bit PHP Version: 5.4.0beta2 Block user comment: N Private report: N New Comment: actullay, there is a limition, sys/un.h /* Structure describing the address of an AF_LOCAL (aka AF_UNIX) socket. */ struct sockaddr_un { __SOCKADDR_COMMON (sun_); char sun_path[108]; /* Path name. */ }; I think this issue could mark as doc problem. Previous Comments: ------------------------------------------------------------------------ [2011-10-20 19:11:44] tyrael@php.net Description: ------------ this works: ./sapi/cli/php -r '$file = "/tmp/".str_repeat("a", 101);stream_socket_server("unix://".$file) && unlink($file);' this isn't: ./sapi/cli/php -r '$file = "/tmp/".str_repeat("a", 102);stream_socket_server("unix://".$file) && unlink($file);' gives me an: Warning: stream_socket_server(): unable to connect to unix:///tmp/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (Unknown error) in Command line code on line 1 I didn't found any mention in the documentation about restrictions on the length of the socket file. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60106&edit=1

« previous php.bugs (#164484) next »