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

ftell() returns different value for network sockets #3018

Closed
jmarrama opened this issue Jun 23, 2014 · 0 comments
Closed

ftell() returns different value for network sockets #3018

jmarrama opened this issue Jun 23, 2014 · 0 comments
Assignees

Comments

@jmarrama
Copy link
Contributor

$s = fsockopen("udp://127.0.0.1", 12345);
var_dump(fwrite($s, "foo"));
var_dump(ftell($s));

/**
hhvmPOD:~/scratch/fwrite]$ php t.php
int(3)
int(0)
hhvmPOD:~/scratch/fwrite]$ hhvm t.php
int(3)
int(3)
*/
jmarrama added a commit to jmarrama/hhvm that referenced this issue Jun 23, 2014
This improves a test that was breaking due to facebook#3018 being surfaced
by a fix to pfsockopen. This changes the test to assert that the
bug in pfsockopen is fixed.
@JoelMarcey JoelMarcey self-assigned this Nov 3, 2014
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

3 participants