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

From: Date: Sun, 26 May 2019 16:38:17 +0000
Subject: Bug #78051 [Opn]: Disabling crypto on a crypto-enabled stream socket succeeds silently
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220998@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 User updated by: info at charuru dot moe Reported by: info at charuru dot moe Summary: Disabling crypto on a crypto-enabled stream socket succeeds silently Status: Open Type: Bug Package: OpenSSL related Operating System: Windows 7 Ultimate x64 -PHP Version: 7.2.18 +PHP Version: Irrelevant Block user comment: N Private report: N New Comment: This bug exists across all maintained versions. 7.2.18 is just the one I tested locally. The others were tested on Travis CI. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#220998) next »