Topic: Running parallel\Runtime with php-8.0.23-1.el8.remi
Hi, I need to implement some multi-thread processing with php. Have been trying to run a sample script, basic-multithreading-test.php, that uses parallel\Runtime. We have a number of PHP 8.0.23 packages installed, and it is ZTS. It seems to fail in the use parallel\Runtime statement. I am fairly new to PHP. Could someone please share some tips on getting started with using parallel\Runtime.
Running el8
$ /usr/bin/zts-php --version
PHP 8.0.23 (cli) (built: Aug 30 2022 12:16:34) ( ZTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.23, Copyright (c) Zend Technologies
with Zend OPcache v8.0.23, Copyright (c), by Zend Technologies
use parallel\Runtime
./basic-multithreading-test.php
Error:Class "parallel\Runtime" not found
php-cli-8.0.23-1.el8.remi.x86_64
php-8.0.23-1.el8.remi.x86_64