note 57857 added to function.proc-open

From: Date: Sun, 16 Oct 2005 23:51:41 +0000
Subject: note 57857 added to function.proc-open
Groups: php.notes 
Request: Send a blank email to php-notes+get-97099@lists.php.net to get a copy of this message
The above note on Windows compatibility is not entirely correct. Windows will dutifully pass on additional handles above 2 onto the child process, starting with Windows 95 and Windows NT 3.5. It even supports this capability (starting with Windows 2000) from the command line using a special syntax (prefacing the redirection operator with the handle number). These handles will be, when passed to the child, preopened for low-level IO (e.g. _read) by number. The child can reopen them for high-level (e.g. fgets) using the _fdopen or _wfdopen methods. The child can then read from or write to them the same way they would stdin or stdout. However, child processes must be specially coded to use these handles, and if the end user is not intelligent enough to use them (e.g. "openssl < commands.txt 3< cacert.der") and the program not smart enough to check, it could cause errors or hangs. ---- Manual Page -- http://www.php.net/manual/en/function.proc-open.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57857 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57857&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57857&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57857&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57857&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57857&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57857&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57857&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57857&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#97099) next »