pthreads
PHP Manual

预定义常量

下列常量由此扩展定义,且仅在此扩展编译入 PHP 或在运行时动态载入时可用。

The following constants are for selective inheritance:

PTHREADS_INHERIT_ALL (integer)
The default inheritance mask used when starting Threads and Workers
PTHREADS_INHERIT_INI (integer)
Determines wether the ini entries are inherited by the new context
PTHREADS_INHERIT_CONSTANTS (integer)
Determines wether the constants are inherited by the new context
PTHREADS_INHERIT_CLASSES (integer)
Determines wether the class table is inherited by the new context
PTHREADS_INHERIT_FUNCTIONS (integer)
Determines wether the function table is inherited by the new context
PTHREADS_INHERIT_INCLUDES (integer)
Determines wether the included_files table is inherit by the new context
PTHREADS_INHERIT_NONE (integer)
Nothing will be inherited by the new context

pthreads
PHP Manual