diff options
| author | Wez Furlong <wez@php.net> | 2002-12-19 20:23:50 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2002-12-19 20:23:50 +0000 |
| commit | 602734c7d9f2ad58d1ce8cedd6384dbfbdfd06bb (patch) | |
| tree | dee1039aa02085609bb6d9c7c5bf75cf1458c4ca /ext/standard/exec.c | |
| parent | 183ebe3e14e621bf399212ccf1d030718077e8ec (diff) | |
| download | php-git-602734c7d9f2ad58d1ce8cedd6384dbfbdfd06bb.tar.gz | |
Correct mistake introduced by my last commit on these files;
*_from_pipe() is for process-pipes created by fopen, not generic pipes
created from proc_open().
Correctly implemented the fifo/pipe check for *_from_file() and it seems
to be working correctly now.
Diffstat (limited to 'ext/standard/exec.c')
| -rw-r--r-- | ext/standard/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/exec.c b/ext/standard/exec.c index fd5076297b..7313ce6e57 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -976,7 +976,7 @@ PHP_FUNCTION(proc_open) fp = fdopen(descriptors[i].parentend, mode_string); #endif if (fp) { - stream = php_stream_fopen_from_pipe(fp, mode_string); + stream = php_stream_fopen_from_file(fp, mode_string); if (stream) { zval *retfp; |
