Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51583 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72880 invoked from network); 7 Mar 2011 01:37:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2011 01:37:49 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 207.97.245.113 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 207.97.245.113 smtp113.iad.emailsrvr.com Linux 2.6 Received: from [207.97.245.113] ([207.97.245.113:51324] helo=smtp113.iad.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/B2-49829-CE6347D4 for ; Sun, 06 Mar 2011 20:37:49 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp41.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 16588290A96; Sun, 6 Mar 2011 20:37:46 -0500 (EST) X-Virus-Scanned: OK Received: by smtp41.relay.iad1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id ACD37290A7C; Sun, 6 Mar 2011 20:37:45 -0500 (EST) Message-ID: <4D7436E8.7010802@sugarcrm.com> Date: Sun, 06 Mar 2011 17:37:44 -0800 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.14) Gecko/20110221 Thunderbird/3.1.8 MIME-Version: 1.0 To: Gustavo Lopes CC: "internals@lists.php.net" References: <43.60.54597.484527D4@pb1.pair.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [patch] allow socket_[gs]et_options() to work on streams From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > I think a better option would be a function to convert a php socket stream > into a socket resource. That would avoid limiting this to > socket_get_options/socket_set_options and polluting the socket ext > functions prologue with these conversions. > I think we already have PHP_STREAM_AS_SOCKETD, which should be appropriate here, not? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227