m4rw3r/php-libev — Issue #1: IOEvent callback infinite loop
Author: dtjm
Created: 2012-02-11 01:10:58+00:00
State: open

Your second example seems to enter an infinite loop on the callback. Is this how its supposed to work?

```
add($echo);
$loop->run();
```

```
$ echo "hello" | php libevtest.php
ECHO: HELLO
ECHO: ECHO: ECHO: ECHO: ECHO: ECHO: ECHO: [....ad infinitum]
```

My setup:

```
$ php -v
PHP 5.3.8 with Suhosin-Patch (cli) (built: Sep 30 2011 05:34:36)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

$ php -i | grep libev
libev
libev version => 4.4
```