Bug #77938 [Opn->Ver]: socket_get_option error

From: Date: Wed, 24 Apr 2019 21:11:38 +0000
Subject: Bug #77938 [Opn->Ver]: socket_get_option error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220592@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77938&edit=1 ID: 77938 Updated by: requinix@php.net Reported by: v-altruo at microsoft dot com Summary: socket_get_option error -Status: Open +Status: Verified Type: Bug Package: Streams related Operating System: Windows PHP Version: 7.2.18RC1 Block user comment: N Private report: N New Comment: Warning: socket_import_stream(): cannot represent a stream of type tcp_socket/ssl as a Socket Descriptor Broken by the new HTTPS redirect. Adding "http" => ["follow_location" => 0] to the options array works. Previous Comments: ------------------------------------------------------------------------ [2019-04-24 21:07:43] v-altruo at microsoft dot com Description: ------------ Failed regardless of OPCache being enabled or disabled and if it was TS or NTS. Test file location: ext\standard\tests\stream\stream_context_tcp_nodelay_fopen.phpt Test script: --------------- $ctxt = stream_context_create([ "socket" => [ "tcp_nodelay" => true ] ]); $stream = fopen("http://www.php.net", "r", false, $ctxt); $socket = @socket_import_stream($stream); var_dump(socket_get_option($socket, STREAM_IPPROTO_TCP, TCP_NODELAY) > 0); Expected result: ---------------- bool(true) Actual result: -------------- Warning: socket_get_option() expects parameter 1 to be resource, boolean given in... bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77938&edit=1

« previous php.bugs (#220592) next »