1
0
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:
Ilia Alshanetsky
2010-01-18 12:50:08 +00:00
parent 5e910748fe
commit 397b6bcdf4
+4
View File
@@ -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;
}