reactphp / filesystem

Evented filesystem access.
MIT License
135 stars 40 forks source link

Tail example not work #91

Open alexmorbo opened 3 years ago

alexmorbo commented 3 years ago

Hi! I check tail example and it is not working for me.

I got:

PHP Warning:  Illegal offset type in /var/www/vendor/react/filesystem/src/ChildProcess/Adapter.php on line 198
PHP Warning:  Illegal offset type in /var/www/vendor/react/filesystem/src/ChildProcess/Adapter.php on line 198
PHP Warning:  Illegal offset type in /var/www/vendor/react/filesystem/src/ChildProcess/Adapter.php on line 198
PHP Warning:  Illegal offset type in /var/www/vendor/react/filesystem/src/ChildProcess/Adapter.php on line 198

After checking Adapter, i got nothing in $this->fileDescriptors[$fileDescriptor] in method read.

Inside loop addPeriodicTimer $adapter has

  #fileDescriptors: []
alexmorbo commented 3 years ago

With eio i got this:

PHP Warning:  eio_read(): invalid file descriptor passed in /var/www/vendor/react/filesystem/src/Eio/Adapter.php on line 410