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) */

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to