RE: [PHP-DEV] Re: .phpt test question

From: Date: Thu, 05 Sep 2013 07:24:57 +0000
Subject: RE: [PHP-DEV] Re: .phpt test question
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-68891@lists.php.net to get a copy of this message
On Thu, Sep 5, 2013 at 5:38 AM, Daniel Lowrey <rdlowrey@gmail.com> wrote: > On further consideration this is probably better addressed by setting the > relevant socket streams to non-blocking so that a client connection can be > created in the same process space and tested utilizing select() and an > event loop. This would obviate the need for a proc_open() altogether. ^^ this. This is how most of the tests in the sockets extension work when they need to test a remote connection. Example: https://github.com/php/php-src/blob/master/ext/sockets/tests/socket_sentto_r ecvfrom_ipv4_udp.phpt

« previous php.internals (#68891) next »