mirror of
https://github.com/php/php-src.git
synced 2026-04-03 06:02:23 +02:00
Signal that the stream option passed is an error
Otherwise this falls through to the next case statement.
This commit is contained in:
committed by
George Peter Banyard
parent
71cbef78ba
commit
cef0076a88
@@ -918,6 +918,8 @@ static int php_stdiop_set_option(php_stream *stream, int option, int value, void
|
||||
case PHP_STREAM_SYNC_FDSYNC:
|
||||
return php_stdiop_sync(stream, 1) == 0 ? PHP_STREAM_OPTION_RETURN_OK : PHP_STREAM_OPTION_RETURN_ERR;
|
||||
}
|
||||
/* Invalid option passed */
|
||||
return PHP_STREAM_OPTION_RETURN_ERR;
|
||||
|
||||
case PHP_STREAM_OPTION_TRUNCATE_API:
|
||||
switch (value) {
|
||||
|
||||
Reference in New Issue
Block a user