PUT data lost on webservers with PHP < 5.6
-
pkottas
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 2
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 10 months ago #5868
by admin
Thank for reporting this potential issue.
I will add a workaround for this issue in the next version.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 8 months ago #6052
by admin
I just checked this issue from my todo list to fix it, and I have a question if you don't mind. Why do you need to hack the jBackend module and not just use $json->getRaw() by yourself?
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
pkottas
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 2
-
Thank you received: 0
-
-
7 years 8 months ago #6055
by pkottas
Because the jBackend uses the $json->getRaw() method earlier than my code (it uses it to check for existence of api_key and then passes control to my code), and thus empties the stream (remember this is for PHP < 5.6).
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 7 months ago #6058
by admin
Ok, I got it now.
Unfortunately this requires a kind of patch / workaround like the one you already did, and PHP 5.6 is almost to its end-of-life. So there is no plan to implement it.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.166 seconds