mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +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:
parent
71cbef78ba
commit
cef0076a88
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue