Bug #78051 [Opn->Fbk]: Disabling crypto on a crypto-enabled stream socket succeeds silently

From: Date: Sun, 17 Nov 2019 18:26:59 +0000
Subject: Bug #78051 [Opn->Fbk]: Disabling crypto on a crypto-enabled stream socket succeeds silently
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223766@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78051&edit=1

 ID:                 78051
 Updated by:         bukka@php.net
 Reported by:        info at charuru dot moe
 Summary:            Disabling crypto on a crypto-enabled stream socket
                     succeeds silently
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            OpenSSL related
 Operating System:   Windows 7 Ultimate x64
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        bukka
 Block user comment: N
 Private report:     N

 New Comment:

I don't see anything when opening the links - I guess it probably expired. Can you paste it
here?


Previous Comments:
------------------------------------------------------------------------
[2019-05-26 16:38:17] info at charuru dot moe

This bug exists across all maintained versions. 7.2.18 is just the one I tested locally. The others
were tested on Travis CI.

------------------------------------------------------------------------
[2019-05-22 18:00:52] info at charuru dot moe

Description:
------------
When you try to disable encryption on a stream socket (with encryption enabled), the operation
succeeds, however PHP reports this as failure. Both the server and client are able to read and write
successfully after disabling encryption.

Test script:
---------------
server.php: https://hastebin.com/zuwamexero.xml
client.php: https://hastebin.com/idadesujal.xml


Expected result:
----------------
server:
string(17) "Hello unencrypted"
bool(true)
string(15) "Hello encrypted"
bool(true)
string(17) "Hello unencrypted"

client:
int(17)
bool(true)
int(15)
bool(true)
int(17)

Actual result:
--------------
server:
string(17) "Hello unencrypted"
bool(true)
string(15) "Hello encrypted"
bool(false)
string(17) "Hello unencrypted"

client:
int(17)
bool(true)
int(15)
bool(false)
int(17)


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



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


Thread (4 messages)

« previous php.bugs (#223766) next »