在 Debian 中使用 pthreads 编译 PHP
Compiled PHP with pthreads in Debian
我根据http://php.net/manual/en/pthreads.installation.php#114837.
在Debian中用pthreads编译PHP-7.0.0RC1完全没有任何错误
然后我列出了 PHP 模块,其中列出了 'php -m ' 命令和 pthread,所以它安装正确。
之后为了测试它,我使用了以下简单代码:
<?php
class cls extends Thread {
}
?>
但是我有如下错误:
如果我删除 'extends Thread' 它将 运行 成功且没有错误。
我们将不胜感激。
您只能在 CLI 中加载最新版本的 pthreads。
如果您没有收到错误,则说明您使用的不是最新版本。
我根据http://php.net/manual/en/pthreads.installation.php#114837.
在Debian中用pthreads编译PHP-7.0.0RC1完全没有任何错误然后我列出了 PHP 模块,其中列出了 'php -m ' 命令和 pthread,所以它安装正确。 之后为了测试它,我使用了以下简单代码:
<?php
class cls extends Thread {
}
?>
但是我有如下错误:
如果我删除 'extends Thread' 它将 运行 成功且没有错误。
我们将不胜感激。
您只能在 CLI 中加载最新版本的 pthreads。
如果您没有收到错误,则说明您使用的不是最新版本。