Re: [PR][php-src][#1142][master] - Fixed wrong parameter type of php_stream_mmap_range()

From: Date: Wed, 04 Mar 2015 03:48:26 +0000
Subject: Re: [PR][php-src][#1142][master] - Fixed wrong parameter type of php_stream_mmap_range()
References: 1  Groups: php.cvs php.git-pulls 
Request: Send a blank email to php-cvs+get-85192@lists.php.net to get a copy of this message
HI folks, Please take a look at this diff please. if no problem I may going to commit it one or two days later. --- a/main/streams/mmap.c +++ b/main/streams/mmap.c @@ -22,7 +22,7 @@ #include "php.h" #include "php_streams_int.h" -PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_operation_t mode, size_t *mapped_len) +PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len) { php_stream_mmap_range range; --- a/main/streams/php_stream_mmap.h +++ b/main/streams/php_stream_mmap.h @@ -67,7 +67,7 @@ typedef struct { #define php_stream_mmap_possible(stream) (!php_stream_is_filtered((stream)) && php_stream_mmap_supported((stream))) BEGIN_EXTERN_C() -PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_operation_t mode, size_t *mapped_len); +PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len); #define php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((stream), (offset), (length), (mode), (mapped_len)) /* un-maps the last mapped range */ On 4 March 2015 at 11:30, <noreply@php.net> wrote: > You can view the Pull Request on github: > https://github.com/php/php-src/pull/1142 > > Pull Request Description: > There are several warnings about this. > The mode type should be php_stream_mmap_access_t but not > php_stream_mmap_operate_t > > > -- > Git Pull Requests Mailing List (https://github.com/php) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Reeze Xia http://reeze.cn

« previous php.cvs (#85192) next »