Probleme mit Erweiterung "parallel" PHP TS (Thread Safe)

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Probleme mit Erweiterung "parallel" PHP TS (Thread Safe)

Postby tomfox » 21. October 2021 19:28

Hallo,

ich komme einfach nicht weiter und habe keine Idee mehr woran es liegen kann.
Vielleicht hat ja einer von euch einen Tipp für mich.

Ich nutze Win10 / Xampp 3.3.0 / PHP/7.4.25 und möchte die PHP Erweiterung "parallel" nutzen.
https://www.php.net/manual/de/book.parallel.php

Diese Anleitung habe ich ausgeführt:
- Install PHP TS (Thread Safe)
- Download Extension from PECL (PHP-Version, Thread Safe (TS), Compiler - Version (VC15, VC16), Architecture must match)
- Copy extension to folder: <your php dir>/ext/php_parallel.dll
- Copy app to folder: <your php dir>/pthreadVC2.dll (It is important to copy pthreadVC2.dll not into the ext folder!)
- add pthreadVC2.dll to windows system environment path
- add in php.ini the line extension=parallel to load the extension
- restart
Try on console: php -v

Bis hier klappt alles.
- keine Fehlermeldungen
- PHP Programme laufen
- Alles sieht gut aus

Wenn ich jetzt mein erstes Testprogramm ausführe:
https://www.php.net/manual/de/class.parallel-future.php
<?php
$runtime = new \parallel\Runtime;
$future = $runtime->run(function(){ return "World"; });
printf("Hello %s\n", $future->value());
?>

Erhalte ich folgende Fehlermeldung.
Die Website ist nicht erreichbar
Verbindung wurde zurückgesetzt.

Andere Programme laufen einwandfrei.

Der Error-Log bringt mich leider auch nicht weiter.

[Thu Oct 21 20:28:26.254664 2021] [mpm_winnt:notice] [pid 14800:tid 572] AH00428: Parent: child process 7816 exited with status 3221225477 -- Restarting.
[Thu Oct 21 20:28:26.312472 2021] [ssl:warn] [pid 14800:tid 572] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Oct 21 20:28:26.334274 2021] [mpm_winnt:notice] [pid 14800:tid 572] AH00455: Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/7.4.25 configured -- resuming normal operations
[Thu Oct 21 20:28:26.334274 2021] [mpm_winnt:notice] [pid 14800:tid 572] AH00456: Apache Lounge VC15 Server built: Oct 8 2021 10:03:59
[Thu Oct 21 20:28:26.334274 2021] [core:notice] [pid 14800:tid 572] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Thu Oct 21 20:28:26.339261 2021] [mpm_winnt:notice] [pid 14800:tid 572] AH00418: Parent: Created child process 18128
[Thu Oct 21 20:28:26.648972 2021] [ssl:warn] [pid 18128:tid 580] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Oct 21 20:28:26.693787 2021] [ssl:warn] [pid 18128:tid 580] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Oct 21 20:28:26.716811 2021] [mpm_winnt:notice] [pid 18128:tid 580] AH00354: Child: Starting 150 worker threads.

Ehrlich gesagt bin ich jetzt ratlos.
Hat jemand eine Idee wie ich dem Fehler auf die Spur kommen kann?

VG Fox
tomfox
 
Posts: 1
Joined: 21. October 2021 19:14
XAMPP version: 3.3.0
Operating System: Win 10

Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 61 guests