Skip to content

Commit fcc00dc

Browse files
frederikboschondrejmirtes
authored andcommitted
stream_socket_enable_crypto returns int|bool
From the docs. Returns TRUE on success, FALSE if negotiation has failed or 0 if there isn't enough data and you should try again (only for non-blocking sockets). So both true and false are allowed.
1 parent d22e88f commit fcc00dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Reflection/SignatureMap/functionMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11733,7 +11733,7 @@
1173311733
'stream_set_write_buffer' => ['int', 'fp'=>'resource', 'buffer'=>'int'],
1173411734
'stream_socket_accept' => ['resource|false', 'serverstream'=>'resource', 'timeout='=>'float', '&w_peername='=>'string'],
1173511735
'stream_socket_client' => ['resource|false', 'remoteaddress'=>'string', '&w_errcode='=>'int', '&w_errstring='=>'string', 'timeout='=>'float', 'flags='=>'int', 'context='=>'resource'],
11736-
'stream_socket_enable_crypto' => ['int', 'stream'=>'resource', 'enable'=>'bool', 'cryptokind='=>'int', 'sessionstream='=>'resource'],
11736+
'stream_socket_enable_crypto' => ['int|bool', 'stream'=>'resource', 'enable'=>'bool', 'cryptokind='=>'int', 'sessionstream='=>'resource'],
1173711737
'stream_socket_get_name' => ['string', 'stream'=>'resource', 'want_peer'=>'bool'],
1173811738
'stream_socket_pair' => ['resource[]|false', 'domain'=>'int', 'type'=>'int', 'protocol'=>'int'],
1173911739
'stream_socket_recvfrom' => ['string', 'stream'=>'resource', 'amount'=>'int', 'flags='=>'int', '&w_remote_addr='=>'string'],

0 commit comments

Comments
 (0)