Edit report at http://bugs.php.net/bug.php?id=53465&edit=1
ID: 53465 Updated by: cataphr...@php.net Reported by: dchurch at sciencelogic dot com Summary: Cannot open file descriptor streams -Status: Assigned +Status: Duplicate Type: Bug Package: Filesystem function related Operating System: Linux PHP Version: 5.3.3 Assigned To: cataphract Block user comment: N Private report: N New Comment: Committed to 5.3 and trunk. I'm marking this as a duplicate and request #26158 as closed. Thank you for your report. Previous Comments: ------------------------------------------------------------------------ [2010-12-11 02:52:18] cataphr...@php.net Automatic comment from SVN on behalf of cataphract Revision: http://svn.php.net/viewvc/?view=revision&revision=306215 Log: - Implemented request #26158/bug #53465 (open arbitrary file descriptor with fopen) ------------------------------------------------------------------------ [2010-12-09 01:31:26] cataphr...@php.net 5.3.4 is in the final stages of the release process, so it will not be possible. Maybe 5.3.5, if the release manager agrees with the inclusion. ------------------------------------------------------------------------ [2010-12-08 21:17:58] dchurch at sciencelogic dot com This works like a charm. I much prefer the php://fd/ syntax to fixing the /dev/fd symlink trickery, anyway. The patch also applies cleanly against the 5.3 branch. Will this be in 5.3.4? ------------------------------------------------------------------------ [2010-12-06 23:29:06] cataphr...@php.net I've attached a patch (against trunk) that allows duping+open arbitrary file descriptor. /dev/fd doesn't seem like a good option because it's not portable. Example: <?php $f = fopen("php://fd/1", "w"); fwrite($f, "test"); Can you see if this is enough? Thanks. ------------------------------------------------------------------------ [2010-12-06 23:24:06] cataphr...@php.net The following patch has been added/updated: Patch Name: php_fd_open.diff Revision: 1291674246 URL: http://bugs.php.net/patch-display.php?bug=53465&patch=php_fd_open.diff&revision=1291674246 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=53465 -- Edit this bug report at http://bugs.php.net/bug.php?id=53465&edit=1