Bug #65602 [Opn]: PHP 5.5.x stalls: Allowed memory size exhausted. openssl_x509_parse() problem ?

From: Date: Sun, 01 Sep 2013 23:08:18 +0000
Subject: Bug #65602 [Opn]: PHP 5.5.x stalls: Allowed memory size exhausted. openssl_x509_parse() problem ?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-181392@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65602&edit=1

 ID:                 65602
 User updated by:    mail at tgries dot de
 Reported by:        mail at tgries dot de
 Summary:            PHP 5.5.x stalls: Allowed memory size exhausted.
                     openssl_x509_parse() problem ?
 Status:             Open
 Type:               Bug
 Package:            *General Issues
 Operating System:   Linux
 PHP Version:        5.5.3
 Block user comment: N
 Private report:     N

 New Comment:

again, just to make it clear: in most of the cases it works. Stalls only now and then. Webserver is
Apache, and a restart solves the problem immediately, but this is not a solution.

I suppose, there's a bug in PHP or openssl function.


Previous Comments:
------------------------------------------------------------------------
[2013-09-01 23:05:07] mail at tgries dot de

Description:
------------
I noticed now and then the following problem with the new 5.5.2 and 5.5.3 version, which makes the
PHP stalling in a short script which uses openssl calls to print server certificates.


PHP Fatal error:  Allowed memory size of 209715200 bytes exhausted (tried to allocate 736849521
bytes) in /srv/www-ssl/scripts/MySimpleCertificateViewer/index.php on line 70

line 70: $certArray = openssl_x509_parse( $cp );

It is currently unclear, why this stall happens, but I want to early report this problem to you
developers.

The script is short and available here https://github.com/Wikinaut/MySimpleCertificateViewer
.


Test script:
---------------
The script is short and available here https://github.com/Wikinaut/MySimpleCertificateViewer
.




------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=65602&edit=1


Thread (6 messages)

« previous php.bugs (#181392) next »