Reputation: 1799
I compiled PHP-7.0.0RC1 with pthreads in Debian completely without any error according to http://php.net/manual/en/pthreads.installation.php#114837.
Then I listed PHP Modules with 'php -m ' command and pthread listed there, so it is inistalled correctly. After that to test it, I used following simple code:
<?php
class cls extends Thread {
}
?>
But I have an error as below:
and if I remove 'extends Thread' it will run successfully with no error.
Any help will be appreciated.
Upvotes: 3
Views: 264
Reputation: 17158
You are only allowed to load the latest version of pthreads in CLI.
If you aren't getting an error, you aren't using the latest release.
Upvotes: 1