Skip to content
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

Pecl update for php 8.3.x #45

Open
Kabingeran opened this issue Apr 5, 2024 · 3 comments
Open

Pecl update for php 8.3.x #45

Kabingeran opened this issue Apr 5, 2024 · 3 comments

Comments

@Kabingeran
Copy link

Hi! Will support for php 8.3 be added?

@27pchrisl
Copy link
Contributor

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)

@Kabingeran
Copy link
Author

This is a bad solution. Why should I install all these dependencies? You need a one-line solution.

@vaawebdev-ozee
Copy link

Guys any news on supporting php 8.3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants