IntroductionThis extension provides asyncronous POSIX I/O by means of » libeio C library written by Marc Lehmann.
Warning
It is important to aware that each request is executed in a thread, and the order of execution of continuously queued requests basically is unpredictable. For instance, the following piece of code is incorrect. Example #1 Incorrect requests
<?php Example #2 Calling request from a request callback
<?php Example #3 Calling request from a request callback
<?php Since version 0.3.0 alpha, a variable used in communications with libeio internally, could be retrieved with eio_get_event_stream. The variable could be used to bind to an event loop supported by some other extension. You might organize a simple event loop where eio and libevent work together: Example #4 Using eio with libevent
<?php |