Permalink
Browse files

Updating STDIN thanks to @derickr

  • Loading branch information...
1 parent 4b63946 commit 5280d9cc3df21184e190fc30218b0fb0b9c3f470 @ianbarber committed Apr 27, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 poll/poll.php
View
@@ -4,11 +4,9 @@
$socket = new ZMQSocket($context, ZMQ::SOCKET_PULL);
$socket->bind("tcp://*:5555");
-$fh = fopen("php://stdin", 'r');
-
$poll = new ZMQPoll();
$poll->add($socket, ZMQ::POLL_IN);
-$poll->add($fh, ZMQ::POLL_IN);
+$poll->add(STDIN, ZMQ::POLL_IN);
$readable = $writeable = array();
while(true) {

0 comments on commit 5280d9c

Please sign in to comment.