Getting SG(request_info).post_data/raw_post_data on master branch?
| From: | Yasuo Ohgaki | Date: | Tue, 17 Sep 2013 19:17:16 +0000 |
| Subject: | Getting SG(request_info).post_data/raw_post_data on master branch? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-69171@lists.php.net to get a copy of this message | ||
Hi all,
SG(request_info).post_data/raw_post_data is removed and modules supposed to
read it from stream on master.
Therefore, I tried to read stream at RINIT in a module as follows,
php_stream_rewind(SG(request_info).request_body);
php_stream_copy_to_mem(SG(request_info).request_body, &post_data_str,
PHP_STREAM_COPY_ALL, 0);
This results in segfault at reading stream.
What is the best way of getting SG(request_info).post_data and
SG(request_info).raw_post_data with master branch? I would like to get
post_data/raw_post_data at runtime also.
Thanks.
--
Yasuo Ohgaki
yohgaki@ohgaki.net