Skip to content

Commit

Permalink
Merge pull request phalcon#11192 from virgofx/2.0.x
Browse files Browse the repository at this point in the history
Fixes phalcon#11190. Use stream_get_line() instead of fread().
  • Loading branch information
andresgutierrez committed Dec 7, 2015
2 parents c20ef68 + ddb60fd commit d0ba270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phalcon/queue/beanstalk.zep
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class Beanstalk
return false;
}

let data = fread(connection, length + 2);
let data = stream_get_line(connection, length + 2);
if stream_get_meta_data(connection)["timed_out"] {
throw new \Phalcon\Exception("Connection timed out");
}
Expand Down

0 comments on commit d0ba270

Please sign in to comment.