Re: Command line PHP

From: Date: Tue, 11 Jan 2011 17:04:48 +0000
Subject: Re: Command line PHP
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-310653@lists.php.net to get a copy of this message
On 11 January 2011 16:59, Robert Cummings <robert@interjinn.com> wrote: > Doh, that sucks! Yep. The common solution I've seen is to have a separate thread running to read from the stream/buffer the content (and suffer the blocking) and the main thread to simply return the data from the the buffer or nothing if there is nothing (and not suffer the blocking). There is a PROPER way, but it is a completely different file i/o mechanism to the one currently used by PHP (and those that use the second thread technique). -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

« previous php.general (#310653) next »