[ 
https://issues.apache.org/jira/browse/THRIFT-948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vitaly Repin updated THRIFT-948:
--------------------------------
    Attachment: php-ssl-0.9.2.patch

Patch against Thrift 0.9.2 sources

It works (for me :-) ) but I have a question to the PHP guys.

In order for the functionality to work I needed to replace 
calls to  stream_socket_sendto and stream_socket_recvfrom in TSocket.php  with 
calls to fwrite and fread. 

Otherwise, script wroted (and tried to receive) unencrypted content to the 
network (as I saw with wireshark). Hence, it was not able to communicate with 
the server.

When I took fread and fwrite into use, everything started to work. But I don't 
have any idea why :-)


> SSL socket support for PHP
> --------------------------
>
>                 Key: THRIFT-948
>                 URL: https://issues.apache.org/jira/browse/THRIFT-948
>             Project: Thrift
>          Issue Type: New Feature
>          Components: PHP - Library
>            Reporter: David Reiss
>            Priority: Minor
>         Attachments: php-ssl-0.9.2.patch, php-ssl.patch
>
>
> This had some basic testing, but was never used in production.  If someone 
> wants to implement this feature, they can start with this patch.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to