ThinkPHP5


think\process\pipes\Pipes
library\think\process\pipes\Pipes.php at line 14

Class Pipes

Pipes
All Known Subclasses:
Unix Windows

public abstract class Pipes


Constant Summary
final static int

CHUNK_SIZE

Field Summary
array

$pipes

Method Summary
abstract array

getDescriptors()

返回用于 proc_open 描述符的数组

abstract string[]

getFiles()

返回一个数组的索引由其相关的流,以防这些管道使用的临时文件的文件名。

abstract string[]

readAndWrite(bool blocking, bool close)

文件句柄和管道中读取数据。

abstract bool

areOpen()

返回当前状态如果有打开的文件句柄或管道。

void

close()

protected bool

hasSystemCallBeenInterrupted()

检查系统调用已被中断

protected void

unblock()

Constant Detail

library\think\process\pipes\Pipes.php at line 28

CHUNK_SIZE

public final static int CHUNK_SIZE = 16384

Field Detail

library\think\process\pipes\Pipes.php at line 18

pipes

public array $pipes = []


Method Detail

library\think\process\pipes\Pipes.php at line 34

getDescriptors

public abstract array getDescriptors()

返回用于 proc_open 描述符的数组


library\think\process\pipes\Pipes.php at line 40

getFiles

public abstract string[] getFiles()

返回一个数组的索引由其相关的流,以防这些管道使用的临时文件的文件名。


library\think\process\pipes\Pipes.php at line 48

readAndWrite

public abstract string[] readAndWrite(bool blocking, bool close)

文件句柄和管道中读取数据。

Parameters:
blocking - 是否使用阻塞调用
close - 是否要关闭管道,如果他们已经到达 EOF。

library\think\process\pipes\Pipes.php at line 54

areOpen

public abstract bool areOpen()

返回当前状态如果有打开的文件句柄或管道。


library\think\process\pipes\Pipes.php at line 60

close

public void close()


library\think\process\pipes\Pipes.php at line 72

hasSystemCallBeenInterrupted

protected bool hasSystemCallBeenInterrupted()

检查系统调用已被中断


library\think\process\pipes\Pipes.php at line 79

unblock

protected void unblock()

ThinkPHP5