Can't start threads with pthread

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Can't start threads with pthread

Postby apacher » 31. January 2016 11:13

I'm using newest xammp 7.0.2 and I want to start my php script with pthreads (I have php-cli.ini for this, where pthreads are included and memory limit set to 3gb). But I always geting this:

Code: Select all
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


At the same time, clean php 7 works fine. How can I solve this issue? Maybe I need to tweak some php-cli.ini variables? Thanks!
apacher
 
Posts: 1
Joined: 31. January 2016 11:10
Operating System: windows 7 x64

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 48 guests