Bug #77522 [NEW]: PECL install fails for recent extensions

From: Date: Fri, 25 Jan 2019 21:47:41 +0000
Subject: Bug #77522 [NEW]: PECL install fails for recent extensions
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-15714@lists.php.net to get a copy of this message
From: dpuglielli at magnitude dot com Operating system: SUSE 12+ PHP version: 7.3.1 Package: PECL Bug Type: Bug Bug description:PECL install fails for recent extensions Description: ------------ Trying to install any recent extension using PECL fails with the error message: Could not download from "https://pecl.php.net/get/<extension>", cannot download "pecl/<extension>" (Connection to `ssl://pecl.php.net:443' failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) Error: cannot download "pecl/<extension>" By recent I mean after about 11 November 2018 (deduced by trying different versions of different extensions until I narrowed down the date). As far as I can tell, this affects any version of any extension for PHP 7+, with PHP downloaded from the SUSE repositories on SUSE 12 or 15. The install command is 'zypper install php7 php7-pear php7-devel'. The problem is not fixed by installing the OpenSSL package from the repos (php7-openssl). This does not appear to affect any other platform. It is not clear to me if this is a PHP bug or a SUSE bug. A couple of people seem to have had this problem online, the suggested workaround is to force PECL to read php.ini when executing the PHP binary by removing the -n switch from PHP calls. See this issue: https://github.com/lazyfrosch/docker-icingaweb2/issues/1. The presence of the -n switch explains why downloading the openssl extension does not work, since that extension is loaded from an ini file. Test script: --------------- For example, pecl install decimal Expected result: ---------------- Extension should begin to download and install. Actual result: -------------- WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update Could not download from "https://pecl.php.net/get/<extension>", cannot download "pecl/<extension>" (Connection to `ssl://pecl.php.net:443' failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) Error: cannot download "pecl/<extension>" -- Edit bug report at https://bugs.php.net/bug.php?id=77522&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77522&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77522&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77522&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77522&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77522&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77522&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77522&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77522&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77522&r=support Expected behavior: https://bugs.php.net/fix.php?id=77522&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77522&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77522&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77522&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77522&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77522&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77522&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77522&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77522&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77522&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77522&r=mysqlcfg

« previous php.pecl.dev (#15714) next »