(PECL eio >= 0.0.1dev)
eio_dup2 — Duplicate a file descriptor
$fd
, mixed $fd2
[, int $pri
= EIO_PRI_DEFAULT
[, callable $callback
= NULL
[, mixed $data
= NULL
]]] ) : resourceeio_dup2() duplicates file descriptor.
fd
Source stream, Socket resource, or numeric file descriptor
fd2
Target stream, Socket resource, or numeric file descriptor
pri
锟斤拷锟斤拷锟斤拷锟斤拷燃锟斤拷锟�EIO_PRI_DEFAULT
锟斤拷EIO_PRI_MIN
锟斤拷EIO_PRI_MAX
锟斤拷 NULL
锟斤拷锟斤拷锟斤拷锟�
NULL
锟斤拷pri
锟斤拷锟斤拷为
EIO_PRI_DEFAULT
锟斤拷
callback
callback
锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟绞憋拷锟斤拷锟斤拷谩锟斤拷锟接ζワ拷锟揭伙拷锟皆拷停锟�
void callback(mixed $data, int $result[, resource $req]);
data
锟斤拷锟捷革拷锟斤拷锟斤拷锟斤拷没锟斤拷锟斤拷荨锟�
result
锟斤拷锟斤拷锟斤拷锟侥斤拷锟斤拷锟街碉拷锟酵拷锟斤拷锟斤拷锟接︼拷锟较低筹拷锟斤拷梅锟斤拷氐锟街碉拷锟�
req
锟斤拷选锟斤拷锟斤拷锟斤拷锟斤拷源锟斤拷锟缴憋拷 eio_get_last_error() 之锟斤拷暮锟斤拷锟绞癸拷谩锟�
data
Arbitrary variable passed to callback
.
eio_dup2() returns request resource on success or FALSE
on error.