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

Remove a warning from msg_receive function #4325

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 1 addition & 4 deletions hphp/runtime/ext/ipc/ext_ipc.cpp
Expand Up @@ -307,10 +307,7 @@ bool HHVM_FUNCTION(msg_receive,

int result = msgrcv(q->id, buffer, maxsize, desiredmsgtype, realflags);
if (result < 0) {
int err = errno;
raise_warning("Unable to receive message: %s",
folly::errnoStr(err).c_str());
errorcode = err;
errorcode = errno;
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion hphp/test/slow/ext_ipc/message_queue.php
Expand Up @@ -29,7 +29,7 @@
var_dump($ret);
var_dump(22 === $s_error_code); // 22 - invalid argument

$ret = @msg_receive($queue, 0, $type, 100, $msg, false, MSG_IPC_NOWAIT, $r_error_code);
$ret = msg_receive($queue, 0, $type, 100, $msg, false, MSG_IPC_NOWAIT, $r_error_code);
var_dump($ret);
var_dump(MSG_ENOMSG === $r_error_code);

Expand Down