Composer, PHP & MariaDB

Erulezz

Verified User
Joined
Sep 14, 2015
Messages
956
Location
🇳🇱
There are several updates available;

- Composer 2.1.6
- PHP 7.3.30 7.4.23 & 8.0.10

The PHP development team announces the immediate availability of PHP 7.4.23. This is a security release.


The PHP development team announces the immediate availability of PHP 8.0.10. This is a security release.

- And updates for all MariaDB versions.
 
Seeing one issue with the PHP8 update, I see this at the end of the update on multiple machines. Thinking this has been happening for a while, as the last build date of pear on this machine is Dec 6, 2020... Nov 23, 2020 on another.

Code:
Make Complete
Making PHP 8.0 installation compatible with php.ini file
Temporary disabling extensions...
Installing php...
Installing PHP SAPI module:       embed
Installing shared extensions:     /usr/local/php80/lib/php/extensions/no-debug-non-zts-20200930/
Installing PHP CLI binary:        /usr/local/php80/bin/
Installing PHP CLI man page:      /usr/local/php80/php/man/man1/
Installing PHP FPM binary:        /usr/local/php80/sbin/
Installing PHP FPM defconfig:     skipping
Installing PHP FPM man page:      /usr/local/php80/php/man/man8/
Installing PHP FPM status page:   /usr/local/php80/php/php/fpm/
Installing PHP LiteSpeed binary:  /usr/local/php80/bin/
Installing phpdbg binary:         /usr/local/php80/bin/
Installing phpdbg man page:       /usr/local/php80/php/man/man1/
Installing PHP CGI binary:        /usr/local/php80/bin/
Installing PHP CGI man page:      /usr/local/php80/php/man/man1/
Installing build environment:     /usr/local/php80/lib/php/build/
Installing header files:          /usr/local/php80/include/php/
Installing helper programs:       /usr/local/php80/bin/
  program: phpize80
  program: php-config80
Installing man pages:             /usr/local/php80/php/man/man1/
  page: phpize80.1
  page: php-config80.1
Installing PEAR environment:      /usr/local/php80/lib/php/
PHP Warning:  Private methods cannot be final as they are never overridden by other classes in /usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar on line 339
PHP Fatal error:  Uncaught Error: Call to undefined function popen() in phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/OS/Guess.php:306
Stack trace:
#0 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/OS/Guess.php(251): OS_Guess->_fromGlibCTest()
#1 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/OS/Guess.php(214): OS_Guess->_readGlibCVersionFromFeaturesHeaderFile()
#2 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/OS/Guess.php(148): OS_Guess->_detectGlibcVersion()
#3 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/OS/Guess.php(107): OS_Guess->parseSignature()
#4 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/PEAR/Dependency2.php(109): OS_Guess->__construct()
#5 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/PEAR/Downloader.php(277): PEAR_Dependency2->__construct()
#6 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/PEAR/Downloader.php(556): PEAR_Downloader->getDependency2Object()
#7 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/PEAR/Installer.php(1065): PEAR_Downloader->analyzeDependencies()
#8 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/index.php(290): PEAR_Installer->setDownloadedPackages()
#9 /usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar(1284): require_once('...')
#10 {main}
  thrown in phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/OS/Guess.php on line 306
Makefile:548: recipe for target 'install-pear-installer' failed
make[1]: *** [install-pear-installer] Error 255
Makefile:551: recipe for target 'install-pear' failed
make: *** [install-pear] Error 2
 
Getting the same error when updating to 8.0.10 on Debian 10 and secure_php=yes:

Code:
PHP Warning:  Private methods cannot be final as they are never overridden by other classes in /usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar on line 339
PHP Fatal error:  Uncaught Error: Call to undefined function popen() in phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/OS/Guess.php:306
Stack trace:
#0 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/OS/Guess.php(251): OS_Guess->_fromGlibCTest()
#1 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/OS/Guess.php(214): OS_Guess->_readGlibCVersionFromFeaturesHeaderFile()
#2 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/OS/Guess.php(148): OS_Guess->_detectGlibcVersion()
#3 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/OS/Guess.php(107): OS_Guess->parseSignature()
#4 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/PEAR/Dependency2.php(109): OS_Guess->__construct()
#5 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/PEAR/Downloader.php(277): PEAR_Dependency2->__construct()
#6 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/PEAR/Downloader.php(556): PEAR_Downloader->getDependency2Object()
#7 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/PEAR/Installer.php(1065): PEAR_Downloader->analyzeDependencies()
#8 phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/index.php(290): PEAR_Installer->setDownloadedPackages()
#9 /usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar(1284): require_once('...')
#10 {main}
  thrown in phar:///usr/local/directadmin/custombuild/php-8.0.10/pear/install-pear-nozlib.phar/OS/Guess.php on line 306
make[1]: *** [Makefile:548: install-pear-installer] Error 255
make: *** [Makefile:553: install-pear] Error 2

Looks like dawnbringer already found a solution but the need for s custom config feels a bit weird when using CB with fairly default options?
 
Last edited:
I agree with @tristan; I face the same issue with secure_php=yes but I never had this issue in the past so this error is caused during newer PHP8 versions only. On previous PHP8 versions I didn't get this error. Having to disable it to make it compile seems wrong; on the other hand I don't see any issue caused by having this error. I don't run a PHP project on my DA instance right now but DA itself works fine although I didn't rebuild PHP with secure_php=no. Happens on Debian 10 and 11.
 
Last edited:
Changes with nginx 1.21.3 07 Sep 2021

*) Change: optimization of client request body reading when using
HTTP/2.

*) Bugfix: in request body filters internal API when using HTTP/2 and
buffering of the data being processed.
 
Back
Top