Re: I make a patch, how I report?
| From: | Tijnema ! | Date: | Tue, 17 Apr 2007 11:19:46 +0000 |
| Subject: | Re: I make a patch, how I report? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-28880@lists.php.net to get a copy of this message | ||
On 4/16/07, Fernando chucre <fernandochucre@gmail.com> wrote:
Hello all, I build a patch for wrapper php fopen. In this patch I create a way for the script access the filedescriptos opened by process. Ex: php file.php 3<file_in.txt 7>file_out.txt In this case the script can't read the filedescriptor 3 and 7. Not have way for read or write in filedescriptor opends by precess. I make a way for read or write it. I modify the wrapper 'php' for fopen function. (http://br.php.net/manual/en/wrappers.php.php) A create the 'php:/fd/N' which N is the filedescriptor number. how to access fd 7 to write? ex: <? $fd = fopen("php://fd/7",'w'); fwrite($fd,"test of write\n"); fclose($fd); ?> -- Fernando Chure PSL/CEWhere's the patch? Tijnema