Re: [patch] allow socket_[gs]et_options() to work on streams
| From: | Stas Malyshev | Date: | Mon, 07 Mar 2011 01:37:44 +0000 |
| Subject: | Re: [patch] allow socket_[gs]et_options() to work on streams | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51583@lists.php.net to get a copy of this message | ||
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