Re: [PHP-DEV] Getting SG(request_info).post_data/raw_post_data on master branch?

2013-09-18 Thread Michael Wallner
Hi Yasuo! On 17 September 2013 21:17, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi all, SG(request_info).post_data/raw_post_data is removed and modules supposed to read it from stream on master. Did the suggestion from UPGRADING.INTERNALS to use the php://input wrapper work out for you? Maybe

Re: [PHP-DEV] Getting SG(request_info).post_data/raw_post_data on master branch?

2013-09-18 Thread Yasuo Ohgaki
On Wed, Sep 18, 2013 at 4:19 PM, Michael Wallner m...@php.net wrote: Did the suggestion from UPGRADING.INTERNALS to use the php://input wrapper work out for you? Maybe I should add a comment inline... Thank you for the tip. It worked very well. I read your patch didn't read

[PHP-DEV] Getting SG(request_info).post_data/raw_post_data on master branch?

2013-09-17 Thread Yasuo Ohgaki
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,

Re: [PHP-DEV] Getting SG(request_info).post_data/raw_post_data on master branch?

2013-09-17 Thread Andrea Faulds
On 17/09/2013 20:17, Yasuo Ohgaki wrote: 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. Googling PHP raw POST data gets me this: $HTTP_RAW_POST_DATA - Is that what

Re: [PHP-DEV] Getting SG(request_info).post_data/raw_post_data on master branch?

2013-09-17 Thread Yasuo Ohgaki
Hi Andrea, On Wed, Sep 18, 2013 at 4:21 AM, Andrea Faulds a...@ajf.me wrote: On 17/09/2013 20:17, Yasuo Ohgaki wrote: 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

Re: [PHP-DEV] Getting SG(request_info).post_data/raw_post_data on master branch?

2013-09-17 Thread Andrea Faulds
On 17/09/2013 20:28, Yasuo Ohgaki wrote: I'm questioning about getting the data inside PHP with new code in master branch, not in user script. Oops, how silly of me. I must be tired if I thought that was PHP code. Apologies. -- Andrea Faulds http://ajf.me/ -- PHP Internals - PHP Runtime