|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79869 Unsupported operand types: array & int in install-pear-nozlib.phar
Submitted: 2020-07-17 20:58 UTC Modified: -
Avg. Score:3.8 ± 0.8
Reproduced:2 of 3 (66.7%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: ueli at whatwedo dot ch Assigned:
Status: Open Package: *Compile Issues
PHP Version: 8.0.0alpha2 OS: Alpine Linux 3.12
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ueli at whatwedo dot ch
New email:
PHP Version: OS:


 [2020-07-17 20:58 UTC] ueli at whatwedo dot ch
After compiling PHP 8 and running install-pear-nozlib.phar I get "Unsupported operand types: array & int"

Test script:


ALPINE_VERSION=3.12 PHP_VERSION=8.0 docker-compose run sandbox ./ --full

Actual result:
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-24 13:06 UTC] fpoirotte+php-bug79869 at gmail dot com

See my tentative fix at
Not sure if this is the only issue affecting PHP 8.0.0 compatibility or not.

I just hope the package's maintainers can release a fixed PHAR archive soon because I also would like to use PHP 8 and pear together.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jan 22 16:01:24 2021 UTC