eio_dup2

eio_dup2

(PECL eio >= 0.0.1dev)

eio_dup2Duplicate a file descriptor

Description

resource eio_dup2 ( mixed $fd , mixed $fd2 [, int $pri = EIO_PRI_DEFAULT [, callable $callback = NULL [, mixed $data = NULL ]]] )

eio_dup2() duplicates file descriptor.

Parameters

fd

Source stream, Socket resource, or numeric file descriptor

fd2