|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-10-20 19:11 UTC] 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 11:00:01 2025 UTC |
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.