Req #67224 [Opn->Asn]: stream_socket_enable_crypto() requires crypto type when enabling
| From: | rdlowrey@php.net | Date: | Wed, 07 May 2014 14:18:54 +0000 |
| Subject: | Req #67224 [Opn->Asn]: stream_socket_enable_crypto() requires crypto type when enabling | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185690@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67224&edit=1
ID: 67224
Updated by: rdlowrey@php.net
Reported by: daverandom@php.net
Summary: stream_socket_enable_crypto() requires crypto type
when enabling
-Status: Open
+Status: Assigned
Type: Feature/Change Request
Package: Streams related
Operating System: Any
PHP Version: 5.6.0beta2
-Assigned To:
+Assigned To: rdlowrey
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2014-05-07 10:20:19] daverandom@php.net
Description:
------------
Since 5.6.x the crypto type can be determined from the ssl->crypto_method stream context value,
it should no longer be a required argument. An error should emitted only when neither value is
supplied.
Test script:
---------------
$sock = stream_socket_client('tcp://google.com:443');
stream_context_set_option($sock, 'ssl', 'crypto_method',
STREAM_CRYPTO_METHOD_TLS_CLIENT);
stream_socket_enable_crypto($sock, true);
Expected result:
----------------
Crypto enabling succeeds, with method determined from the stream's context options
Actual result:
--------------
Crypto enabling fails because 3rd argument is not supplied
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67224&edit=1