Em Mon, 07 Mar 2011 01:37:44 -0000, Stas Malyshev <smalys...@sugarcrm.com> escreveu:

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?

That will indeed give you a socket descriptor, but
1) it's not directly available to user-space.
2) you still have to create a socket extension resource in order to pass it to functions of that extension.

--
Gustavo Lopes

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to