#44028 [Opn->Csd]: stream_socket_enable_crypto segmentation faults when crypto type is missing
| From: | iliaa@php.net | Date: | Sun, 03 Feb 2008 16:18:16 +0000 |
| Subject: | #44028 [Opn->Csd]: stream_socket_enable_crypto segmentation faults when crypto type is missing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-121926@lists.php.net to get a copy of this message | ||
ID: 44028
Updated by: iliaa@php.net
Reported By: mlemos at acm dot org
-Status: Open
+Status: Closed
Bug Type: Sockets related
Operating System: Any
PHP Version: 5.2.5
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-02-03 03:43:11] mlemos at acm dot org
Description:
------------
When calling the enable argument of stream_socket_enable_crypto is
true, I the crypto type argument is not really optional, as the
documentation suggests.
So, I supposed if you call stream_socket_enable_crypto with enable
argument true and omit crypto_type, it would assume you want to enable
client SSL/TLS negotiation, but instead PHP crashes.
Reproduce code:
---------------
stream_socket_enable_crypto($socket, true);
Expected result:
----------------
Fail warning the user that the crypto_type must be specified.
Actual result:
--------------
Segmentation fault .,
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44028&edit=1