new php parallel. it's new and there is no troubleshooting about it anywhere and the only documentation about it, is php.net itself which is not enough.
this is what I did (per instructions):
- installed latest version of WAMP(3.1.9 x64).
- installed latest version of PHP(7.3.9) on WAMP.
- added PHP to windows system environment path.
- added pthreadVC2.dll to PHP folder & added pthreadVC2.dll to windows system environment path.
- added
php_parallel.dll
to php/ext directory. - added
extension=parallel
to php.ini. - restarted everything.
<?php
# this is my code
$runtime = new \parallel\Runtime();
$future = $runtime->run(function(){
for ($i = 0; $i < 50; $i++)
echo "$i";
return "easy";
});
for ($i = 0; $i < 50; $i++) {
echo ".";
}
hours spent. now windows cmd says:
"Fatal error: Uncaught Error: Class 'parallel\Runtime' not found in ...[my file address]"
and wampserver says "The connection was reset (firefox error)" only on the page I use parallel\Runtime and the other pages work fine.
and please with all do respect don't mark my question as broad one or any other things if you simply don't know the answer. at least show me some links.