parallel
parallel copied to clipboard
A succinct parallel concurrency API for PHP8
I made a library around `ext-parallel`. On PHP 8.0 everything works fine, but from PHP 8.1+ I got segmentation fault errors. Branch: https://github.com/hschimpf/parallel-sdk/tree/segfault Run `make` to execute the tests on...
### Description When using the parallel extension, closures from previously executed scripts are being reused in new scripts, even when the closures are expected to be different. This appears to...
parallel is buggy when used with FrankenPHP, which requires a ZTS build. * It makes PHP freeze: [detailed report and reproducer](https://github.com/dunglas/frankenphp/issues/858#issuecomment-2175825212) * It makes FrankenPHP crash: [detailed report and reproducer](https://github.com/dunglas/frankenphp/issues/791)...
Supporting recursion means we need to be able to collect cyclic references to persistent variables created while copying. I don't have any good ideas for this yet ...
This PR fixes the usage of self referencing closures: ```php $fibonacci = function ($n) use (&$fibonacci) { if ($n == 0) { return 0; } if ($n == 1) {...
repro branch: https://github.com/php-lock/lock/tree/test_37 steps to reproduce: 1. clone the repo 2. run `composer update` 3. run `php vendor/bin/phpunit --no-coverage` ``` Runtime: PHP 8.3.14 Configuration: /__w/lock/lock/phpunit.xml.dist ............................................................... 63 / 169 (...
How to share an object/array across threads without coping it accross a channel/futur in order to minimise memory usage ? With pthreads (php 7.2), we could use Threaded but impossible...
Is it possible to compile your extension from source to dll from newest release 1.2.5? I already tried to do it, but there is no command in configure for "--enable-parallel=shared",...