diff options
| author | Wez Furlong <wez@php.net> | 2003-06-28 11:24:47 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2003-06-28 11:24:47 +0000 |
| commit | 5ecc91c27d1faa7b1917241c71f5f9f82746f985 (patch) | |
| tree | ab7a4544ae31c2fc884aaff9961ecb36b170447f /main/streams/plain_wrapper.c | |
| parent | 8dfe3852155911cbf1a2a099873fc9f9305a5876 (diff) | |
| download | php-git-5ecc91c27d1faa7b1917241c71f5f9f82746f985.tar.gz | |
Merge selectable descriptor casting from PHP_4_3 branch.
Diffstat (limited to 'main/streams/plain_wrapper.c')
| -rw-r--r-- | main/streams/plain_wrapper.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 75bfd27f5c..06909895e5 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -523,6 +523,16 @@ static int php_stdiop_cast(php_stream *stream, int castas, void **ret TSRMLS_DC) } return SUCCESS; + case PHP_STREAM_AS_FD_FOR_SELECT: + PHP_STDIOP_GET_FD(fd, data); + if (fd < 0) { + return FAILURE; + } + if (ret) { + *(int*)ret = fd; + } + return SUCCESS; + case PHP_STREAM_AS_FD: PHP_STDIOP_GET_FD(fd, data); |
