php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71104 socket_import_stream(): does not mention NO SSL/TLS support
Submitted: 2015-12-12 18:21 UTC Modified: 2017-01-28 13:13 UTC
Votes:5
Avg. Score:4.4 ± 0.8
Reproduced:5 of 5 (100.0%)
Same Version:2 (40.0%)
Same OS:0 (0.0%)
From: contact at sshilko dot com Assigned:
Status: Open Package: Sockets related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-12-12 18:21 UTC] contact at sshilko dot com
Description:
------------
---
From manual page: http://www.php.net/function.stream-set-timeout
---

socket_import_stream(): cannot represent a stream of type tcp_socket/ssl as a Socket Descriptor


Test script:
---------------
$stream = stream_socket_client('tls://google.com:443');
$sock = socket_import_stream($stream);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-12 18:22 UTC] contact at sshilko dot com
-Summary: does not mention NO SSL/TLS support +Summary: socket_import_stream(): does not mention NO SSL/TLS support
 [2015-12-12 18:22 UTC] contact at sshilko dot com
updated title
 [2016-02-21 19:51 UTC] adrian dot sandu at asandu dot eu
Any updates/workarounds ?
 [2017-01-28 13:13 UTC] cmb@php.net
-Package: Documentation problem +Package: Sockets related
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Oct 20 00:01:27 2019 UTC