From af9406de8e1f0c77d8e7a36e26172129be2bf2b4 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 20 Jan 2011 07:38:00 +0000 Subject: [PATCH] - don't continue if no valid option value --- main/streams/plain_wrapper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index fdc7fd2841..96332df843 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -713,6 +713,8 @@ static int php_stdiop_set_option(php_stream *stream, int option, int value, void acc = FILE_MAP_READ | FILE_MAP_WRITE; /* TODO: we should assign a name for the mapping */ break; + default: + return PHP_STREAM_OPTION_RETURN_ERR; } /* create a mapping capable of viewing the whole file (this costs no real resources) */ -- 2.50.1