Bug #79869 [NEW]: Unsupported operand types: array & int in install-pear-nozlib.phar

From: Date: Fri, 17 Jul 2020 20:58:37 +0000
Subject: Bug #79869 [NEW]: Unsupported operand types: array & int in install-pear-nozlib.phar
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228105@lists.php.net to get a copy of this message
From:             ueli at whatwedo dot ch
Operating system: Alpine Linux 3.12
PHP version:      8.0.0alpha2
Package:          *Compile Issues
Bug Type:         Bug
Bug description:Unsupported operand types: array & int in install-pear-nozlib.phar

Description:
------------
After compiling PHP 8 and running install-pear-nozlib.phar I get
"Unsupported operand types: array & int"



Test script:
---------------
clone:

https://github.com/whatwedo/php-alpine/tree/feature/php-8

run:

ALPINE_VERSION=3.12 PHP_VERSION=8.0 docker-compose run sandbox
./build.sh --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

-- 
Edit bug report at https://bugs.php.net/bug.php?id=79869&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=79869&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=79869&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=79869&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=79869&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=79869&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=79869&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=79869&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=79869&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=79869&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=79869&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79869&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=79869&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=79869&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=79869&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=79869&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=79869&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=79869&r=mysqlcfg


Thread (10 messages)

« previous php.bugs (#228105) next »