Re: Extension proposal: fdpass

From: Date: Wed, 27 Apr 2011 12:57:16 +0000
Subject: Re: Extension proposal: fdpass
References: 1 2  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-8190@lists.php.net to get a copy of this message
Em Wed, 27 Apr 2011 12:13:17 +0100, Florian Wilkemeyer <fw@f-ws.de> escreveu:
Hi Jille, i had the same requirements and i wrote a simple function and added it to the php sockets extension; to be able to create a 'php-socket' from a FD number (in my case my script gets forked from a webserver - which gives a acceptable pipe as fd#0 to the proc..) so it was possible to use the whole functionallity from php's socket extension..
Note that you can already (since PHP 5.3.6) open an arbitrary file descriptor with the URL php://fd/<file description>. Trunk also has a new function in the sockets extension called socket_import_stream to import a stream as socket resource for use with the sockets extension. -- Gustavo Lopes

« previous php.pecl.dev (#8190) next »