@@ -1193,7 +1193,7 @@ function stream_context_get_params($context): array {}
1193
1193
* @param array|string $param2
1194
1194
* @param mixed $value
1195
1195
*/
1196
- function stream_context_set_option ($ context , $ param2 , string $ option_name = UNDEFINED , $ value = UNDEFINED ): bool {}
1196
+ function stream_context_set_option ($ context , $ param2 , string $ option_name = UNKNOWN , $ value = UNKNWOWN ): bool {}
1197
1197
1198
1198
/** @param resource $stream_or_context */
1199
1199
function stream_context_get_options ($ stream_or_context ): array {}
@@ -1207,14 +1207,14 @@ function stream_context_set_default(array $options) {}
1207
1207
/**
1208
1208
* @param resource $stream
1209
1209
* @param mixed $params
1210
- * @return resource
1210
+ * @return resource|false
1211
1211
*/
1212
1212
function stream_filter_prepend ($ stream , string $ filtername , int $ read_write = 0 , $ params = UNKNOWN ) {}
1213
1213
1214
1214
/**
1215
1215
* @param resource $stream
1216
1216
* @param mixed $params
1217
- * @return resource
1217
+ * @return resource|false
1218
1218
*/
1219
1219
function stream_filter_append ($ stream , string $ filtername , int $ read_write = 0 , $ params = UNKNOWN ) {}
1220
1220
@@ -1225,13 +1225,13 @@ function stream_filter_remove($stream_filter): bool {}
1225
1225
* @param resource $context
1226
1226
* @return resource|false
1227
1227
*/
1228
- function stream_socket_client (string $ remote_socket , &$ errno = null , &$ errstr = null , float $ timeout = UNKNOWN , int $ flags = UNKNOWN , $ context = null ) {}
1228
+ function stream_socket_client (string $ remote_socket , &$ errno = null , &$ errstr = null , float $ timeout = STREAM_CLIENT_CONNECT , int $ flags = UNKNOWN , $ context = null ) {}
1229
1229
1230
1230
/**
1231
1231
* @param resource $context
1232
1232
* @return resource|false
1233
1233
*/
1234
- function stream_socket_server (string $ local_socket , &$ errno = null , &$ errstr = null , int $ flags = UNKNOWN , $ context = null ) {}
1234
+ function stream_socket_server (string $ local_socket , &$ errno = null , &$ errstr = null , int $ flags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN , $ context = null ) {}
1235
1235
1236
1236
/**
1237
1237
* @param resource $server_socket
@@ -1247,7 +1247,7 @@ function stream_socket_get_name($handle, bool $want_peer): string|false {}
1247
1247
function stream_socket_recvfrom ($ socket , int $ length , int $ flags = 0 , &$ address = null ): string |false {}
1248
1248
1249
1249
/** @param resource $socket */
1250
- function stream_socket_sendto ($ socket , string $ data , int $ flags = 0 , $ address = null ): int |false {}
1250
+ function stream_socket_sendto ($ socket , string $ data , int $ flags = 0 , string $ address = "" ): int |false {}
1251
1251
1252
1252
/**
1253
1253
* @param resource $stream
@@ -1271,7 +1271,7 @@ function stream_socket_pair(int $domain, int $type, int $protocol): array|false
1271
1271
function stream_copy_to_stream ($ source , $ dest , int $ maxlength = UNKNOWN , int $ position = 0 ): int |false {}
1272
1272
1273
1273
/** @param resource $handle */
1274
- function stream_get_contents ($ handle , int $ maxlength = UNKNOWN , int $ position = 0 ): string |false {}
1274
+ function stream_get_contents ($ handle , int $ maxlength = UNKNOWN , int $ position = - 1 ): string |false {}
1275
1275
1276
1276
/** @param resource $stream */
1277
1277
function stream_supports_lock ($ stream ): bool {}
0 commit comments