Tensor
Tensor copied to clipboard
Pecl update for php 8.3.x
Hi! Will support for php 8.3 be added?
If you need this and don't mind doing it manually, here's how you can build for PHP 8.3 on Ubuntu 22.04. All done in a Docker container.
The process uses the development branch of https://github.com/zephir-lang/zephir as that has recently got an update to support 8.3 but hasn't made a release yet.
docker run -it ubuntu:22.04 bash
apt update
apt install ca-certificates apt-transport-https software-properties-common lsb-release -y
add-apt-repository ppa:ondrej/php -y
apt install unzip make gcc gfortran php8.3-dev php8.3-mbstring libopenblas-dev liblapacke-dev re2c build-essential git -y
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
git clone https://github.com/RubixML/Tensor.git
pecl install zephir_parser
echo 'extension=zephir_parser.so' >> /etc/php/8.3/cli/php.ini
cd Tensor
/composer.phar require --dev phalcon/zephir:dev-development
./vendor/bin/zephir generate
./vendor/bin/zephir build
cp ext/modules/tensor.so /usr/lib/php/20230831/
echo 'extension=tensor.so' >> /etc/php/8.3/cli/php.ini
/composer.phar test
> phpunit
PHPUnit 9.6.19 by Sebastian Bergmann and contributors.
............................................................... 63 / 246 ( 25%)
............................................................... 126 / 246 ( 51%)
............................................................... 189 / 246 ( 76%)
......................................................... 246 / 246 (100%)
Time: 00:00.109, Memory: 6.00 MB
OK (246 tests, 270 assertions)
This is a bad solution. Why should I install all these dependencies? You need a one-line solution.
Guys any news on supporting php 8.3?