-
-
Notifications
You must be signed in to change notification settings - Fork 31
Pecl update for php 8.3+ #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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? |
Can this issue be renamed to include PHP 8.4? what level of effort is required for this? Is it something where you could post that need sponsors to reach a $xx limit to do it? |
Updated build process for PHP 8.4. It's the same situation as when this issue was originally raised, PHP 8.3 had shipped but Zephir 0.18 had not been released. Now PHP 8.4 is released and we are awaiting Zephir 0.19. So as before, this process uses the Zephir development branch (with a couple of tweaks). Tensor could now update to Zephir 0.18 so that PHP 8.3 can be used without the process above. 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
DEBIAN_FRONTEND=noninteractive apt install unzip make gcc gfortran php8.4-dev php8.4-mbstring php8.4-xml 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.4/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/20240924/
echo 'extension=tensor.so' >> /etc/php/8.4/cli/php.ini
/composer.phar test
> phpunit
PHPUnit 9.6.22 by Sebastian Bergmann and contributors.
............................................................... 63 / 246 ( 25%)
............................................................... 126 / 246 ( 51%)
............................................................... 189 / 246 ( 76%)
......................................................... 246 / 246 (100%)
Time: 00:00.030, Memory: 6.00 MB
OK (246 tests, 270 assertions) |
FWIW, 8.4 is supported in the development branch, see link above. I don't know enough about pecl and this extension to know if it's possible to use the development branch and create a new pecl release that supports 8.3 and 8.4. |
Looks like it's outdated. Use rindow |
I went ahead and pushed a new version of the extension to PECL that's compatible with PHP 8.3. |
I got this error:
|
Uh oh!
There was an error while loading. Please reload this page.
Hi! Will pecl be added for php 8.3+?
The text was updated successfully, but these errors were encountered: