【发布时间】:2016-01-31 10:14:26
【问题描述】:
我安装了新的 xampp (7.0.2 atm)。我创建了 php-cli.ini,在那里添加了 pthread 扩展并将内存限制设置为 3 gb。但是当我尝试启动线程脚本时,我得到了这个:
PHP Fatal error: Uncaught RuntimeException: cannot start my_thread, out of reso
urces in C:\xampp\htdocs\w\start_threads.php:160
Stack trace:
#0 C:\xampp\htdocs\w\start_threads.php(160): Thread->start()
#1 {main}
thrown in C:\xampp\htdocs\w\start_threads.php on line 160
Fatal error: Uncaught RuntimeException: cannot start my_thread, out of resources
in C:\xampp\htdocs\w\start_threads.php:160
(我正在使用 pthreds 3.1.5 x86) 我在这里做错了什么?谢谢!
【问题讨论】: