Bug #71645 [NEW]: PHP7.0.3. OpenSSL Fatal error.
From: bupy765 at gmail dot com
Operating system: OSX 10.9.5
PHP version: 7.0.3
Package: OpenSSL related
Bug Type: Bug
Bug description:PHP7.0.3. OpenSSL Fatal error.
Description:
------------
I have build PHP7 using following source:
ttps://secure.php.net/downloads.php#v7.0.3
I got error associated with OpenSSL when used Composer. Initially I
thought that it Composer bug and sent report to Composer team:
https://github.com/composer/composer/issues/4940
Together with team of Composer came to the conclusion that it bug PHP7.
Information about PHP7, OpenSSL and OS:
OS X 10.9.5
---
PHP 7.0.3 (cli) (built: Feb 22 2016 19:34:44) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend
Technologies
with Xdebug v2.4.0RC4, Copyright (c) 2002-2016, by Derick Rethans
---
/Volumes/Home/username/.phpbrew/php/php-7.0.3/var/db/openssl.ini,
openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 0.9.8zg 14 July 2015
OpenSSL Header Version => OpenSSL 1.0.1j 15 Oct 2014
Openssl default config => /System/Library/OpenSSL/openssl.cnf
openssl.cafile => no value => no value
openssl.capath => no value => no value
OpenSSL support => enabled
Test script:
---------------
php -ddisplay_errors=1 -derror_reporting=-1 -r
'openssl_x509_parse(file_get_contents("https://raw.githubusercontent.com/composer/composer/master/res/cacert.pem"));'
Expected result:
----------------
PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted
(tried to allocate 9223372036854775912 bytes) in Command line code on
line 1
PHP Stack trace:
PHP 1. {main}() Command line code:0
PHP 2. openssl_x509_parse() Command line code:1
Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to
allocate 9223372036854775912 bytes) in Command line code on line 1
Call Stack:
0.0001 349360 1. {main}() Command line code:0
1.8493 610256 2. openssl_x509_parse() Command line code:1
--
Edit bug report at https://bugs.php.net/bug.php?id=71645&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71645&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71645&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71645&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71645&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71645&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71645&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71645&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71645&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71645&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71645&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71645&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71645&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71645&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71645&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71645&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71645&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71645&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71645&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71645&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71645&r=mysqlcfg
Thread (6 messages)
- bupy765 at gmail dot com