svn: /php/php-src/ branches/PHP_5_3/main/streams/plain_wrapper.c trunk/main/streams/plain_wrapper.c

From: Date: Thu, 20 Jan 2011 07:38:00 +0000
Subject: svn: /php/php-src/ branches/PHP_5_3/main/streams/plain_wrapper.c trunk/main/streams/plain_wrapper.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-64407@lists.php.net to get a copy of this message
pajoye Thu, 20 Jan 2011 07:38:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=307619 Log: - don't continue if no valid option value Changed paths: U php/php-src/branches/PHP_5_3/main/streams/plain_wrapper.c U php/php-src/trunk/main/streams/plain_wrapper.c Modified: php/php-src/branches/PHP_5_3/main/streams/plain_wrapper.c =================================================================== --- php/php-src/branches/PHP_5_3/main/streams/plain_wrapper.c 2011-01-20 07:05:34 UTC (rev 307618) +++ php/php-src/branches/PHP_5_3/main/streams/plain_wrapper.c 2011-01-20 07:38:00 UTC (rev 307619) @@ -713,6 +713,8 @@ 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) */ Modified: php/php-src/trunk/main/streams/plain_wrapper.c =================================================================== --- php/php-src/trunk/main/streams/plain_wrapper.c 2011-01-20 07:05:34 UTC (rev 307618) +++ php/php-src/trunk/main/streams/plain_wrapper.c 2011-01-20 07:38:00 UTC (rev 307619) @@ -713,6 +713,8 @@ 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) */

« previous php.cvs (#64407) next »