Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream_socket_get_name function add ":" for unix domain socket. #7733

Closed
s2x opened this issue Mar 16, 2017 · 2 comments
Closed

stream_socket_get_name function add ":" for unix domain socket. #7733

s2x opened this issue Mar 16, 2017 · 2 comments
Assignees

Comments

@s2x
Copy link

s2x commented Mar 16, 2017

The stream_socket_get_name function add ":" when using a unix domain socket.

HHVM Version

3.18.1

Standalone code, or other way to reproduce the problem

<?php
$socket = stream_socket_server("unix://test.sock", $errno, $errstr);
if (!$socket) {
  echo "$errstr ($errno)<br />\n";
} else {
  $socket_path = stream_socket_get_name($socket, false);
  echo "$socket_path\n";
  fclose($socket);
  unlink($socket_path);
}

Expected result

test.sock

Actual result

test.sock:

Warning: unlink(test.sock:): No such file or directory in test.php on line 9
@mofarrell
Copy link
Contributor

@mofarrell mofarrell self-assigned this Mar 17, 2017
@s2x
Copy link
Author

s2x commented Mar 20, 2017

I have made PR for this issue #7738

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants