mirror of
https://github.com/php/php-src.git
synced 2026-04-23 07:58:20 +02:00
Fixed bug #50787 (stream_set_write_buffer() has no effect on socket streams).
This commit is contained in:
@@ -400,6 +400,10 @@ static int php_sockop_set_option(php_stream *stream, int option, int value, void
|
||||
}
|
||||
#endif
|
||||
|
||||
case PHP_STREAM_OPTION_WRITE_BUFFER:
|
||||
php_stream_set_chunk_size(stream, (ptrparam ? *(size_t *)ptrparam : PHP_SOCK_CHUNK_SIZE));
|
||||
return PHP_STREAM_OPTION_RETURN_OK;
|
||||
|
||||
default:
|
||||
return PHP_STREAM_OPTION_RETURN_NOTIMPL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user