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
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 you're after?
Hope this helped.
--
Andrea Faulds
http://ajf.me/
Hi Andrea,
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 you're after?Hope this helped.
I'm questioning about getting the data inside PHP with new code in master
branch,
not in user script.
Thanks.
--
Yasuo Ohgaki
yohgaki@ohgaki.net
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/
Hi Yasuo!
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 I should add a comment inline...
--
Regards,
Mike
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 UPGRADING.INTERNALS carefully.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net