Amphp Parallel on Frankenphp Windows #2278
Replies: 3 comments 5 replies
-
|
I don't see how this related to FrankenPHP at all. |
Beta Was this translation helpful? Give feedback.
-
|
There's a set of constants, for example PHP_OS, PHP_VERSION, which is defined by the PHP engine. |
Beta Was this translation helpful? Give feedback.
-
|
Amphp Parallel isn't actually parallel. It spawns a completely separate PHP process to run things and communicates through shared memory. If you install the parallel extension (which IIRC, is not compatible with windows), then it will spawn a separate thread and not need the separate process. All that is from memory based on when I last used it 3-4 years ago. So it might be outdated. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When using Amphp Parallel on Windows it ends with "Could not locate PHP executable binary".
It tries to find a php.exe which is not installed.
However Frankenphp bundles php.exe so there's no need.
Have a look here:
https://github.com/amphp/parallel/blob/296b521137a54d3a02425b464e5aee4c93db2c60/src/Context/ProcessContext.php#L188
Is this something that could happen on Frankenphp side or rather Amphp? Or env variable would be a workaround?
Beta Was this translation helpful? Give feedback.
All reactions