Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68891 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58988 invoked from network); 5 Sep 2013 07:25:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2013 07:25:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=are.you.winning@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=are.you.winning@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.177 as permitted sender) X-PHP-List-Original-Sender: are.you.winning@gmail.com X-Host-Fingerprint: 74.125.82.177 mail-we0-f177.google.com Received: from [74.125.82.177] ([74.125.82.177:60488] helo=mail-we0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/29-01925-DC138225 for ; Thu, 05 Sep 2013 03:25:04 -0400 Received: by mail-we0-f177.google.com with SMTP id t60so266487wes.8 for ; Thu, 05 Sep 2013 00:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:thread-index :content-language; bh=h8QCMD/Y5ArT9COoyglAgMa6gAoBEpAyJdkZjlusHYI=; b=B1fqzgushrqfegdiZLAfV/Ug5NRVtQG51YjmInQSoiJO0waIA4s/QBYXvAzHwNM5ud 5OGuA9Hllj+6H9+pqipaR934kFtjSK6MAYWqu3+8sYDUy9y1SuEPZ3fumknnUNw33FEW IT3pHWXvLs9qB6JGHYAU2OAKHU7yQvTtVsqbvhmiEgzC8QfjEfekjoPmpkZmsAbgAKoX N1Zn5su9TBtulH6S8dLysnRYAU1IXvNWk5nx0U2FVXXNWRJGa6SDHaxkcx/QODUvBu1U ytZ2wOVCIsXXH0DweRsm/otGux+HDww4VL4lpkgMyqKLK6y3idOx6L/5RzYDhHiKfPzv ZeeQ== X-Received: by 10.180.89.147 with SMTP id bo19mr5207160wib.3.1378365898424; Thu, 05 Sep 2013 00:24:58 -0700 (PDT) Received: from CHRISWPC (stockport.aquacool.ltd.uk. [77.107.181.84]) by mx.google.com with ESMTPSA id p8sm9395527wij.8.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 05 Sep 2013 00:24:58 -0700 (PDT) Sender: Chris Wright To: "'Daniel Lowrey'" , References: In-Reply-To: Date: Thu, 5 Sep 2013 08:24:57 +0100 Message-ID: <001c01ceaa09$068d1560$13a74020$@net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AQHOqfHE9Qp2m2dmBUO8/VZNsGKPyZm2vbnw Content-Language: en-gb Subject: RE: [PHP-DEV] Re: .phpt test question From: daverandom@php.net ("Chris Wright") On Thu, Sep 5, 2013 at 5:38 AM, Daniel Lowrey 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