codecasts / php-alpine

PHP APK Repository for Alpine Linux
https://github.com/codecasts/php-alpine
483 stars 58 forks source link

WIP: PHP 8.0.0 Alpha 2 #108

Closed xarem closed 3 years ago

xarem commented 4 years ago

Branch based in #101

Currently failing while installing pear

Fatal error: Uncaught TypeError: Unsupported operand types: array & int in /tmp/src-php8/php-8.0.0alpha2/pear/install-pear-nozlib.phar:517
Stack trace:
#0 /tmp/src-php8/php-8.0.0alpha2/pear/install-pear-nozlib.phar(454): PHP_Archive::_unserializeManifest('F\x00\x00\x00\x11\x00\x00\x00\x01\x00\x18\x00\x00\x00i...')
#1 /tmp/src-php8/php-8.0.0alpha2/pear/install-pear-nozlib.phar(414): PHP_Archive::_mapPhar('/tmp/src-php8/p...', 43987)
#2 /tmp/src-php8/php-8.0.0alpha2/pear/install-pear-nozlib.phar(1164): PHP_Archive::mapPhar(NULL, 43987)
#3 {main}
  thrown in /tmp/src-php8/php-8.0.0alpha2/pear/install-pear-nozlib.phar on line 517
make[1]: *** [Makefile:570: install-pear-installer] Error 255
make: *** [Makefile:575: install-pear] Error 2

Bug Report: https://bugs.php.net/bug.php?id=79869

xarem commented 4 years ago

see https://github.com/pear/PHP_Archive/pull/4 - thanks to @fpoirotte

hernandev commented 3 years ago

@xarem just as PHP 7.4 had many not-ready extensions and some deps were not really prepared for alpine, I just released (back then) the stable without some features (xdebug being one of them).

We can strip out pear on the build process ( but leaving a multi-line @ TODO so we remember to check and add support afterwards)

The earliest we get a minimal feature 8.0 running, the easier will be to solve the pending incompatible things.

I may use this as starting point and dig this a bit within the next days, but feel free to keep on this if you wish, just take in mind the first drafts and alphas and RC's almost never got feature-full on the first builds, it was after PHP 7.4 was long stable that xdebug catched up, and honestly, I do not use PEAR, so I would not even miss it immediately

hernandev commented 3 years ago

Changed this to branch feature/php-8.0 so we can improve and work locally on the repo, gonna merge so we have the WIP branch, cool?