From: tyrael Operating system: linux debian squeeze 64 bit PHP version: 5.4.0beta2 Package: Streams related Bug Type: Bug Bug description:stream_socket_server + long unix socket path = 'Unknown error'
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 bug report at https://bugs.php.net/bug.php?id=60106&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60106&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60106&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60106&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60106&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60106&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60106&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60106&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60106&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60106&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60106&r=support Expected behavior: https://bugs.php.net/fix.php?id=60106&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60106&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60106&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60106&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60106&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60106&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60106&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60106&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60106&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60106&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60106&r=mysqlcfg