php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67197 REGRESION enable_post_data_reading
Submitted: 2014-05-03 22:22 UTC Modified: 2014-05-03 23:09 UTC
From: bugzilla77 at gmail dot com Assigned:
Status: Duplicate Package: Streams related
PHP Version: 5.6.0beta2 OS: win 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 + 50 = ?
Subscribe to this entry?

 
 [2014-05-03 22:22 UTC] bugzilla77 at gmail dot com
Description:
------------
; Whether PHP will read the POST data.
; This option is enabled by default.
; Most likely, you won't want to disable this option globally. It causes $_POST
; and $_FILES to always be empty; the only way you will be able to read the
; POST data will be through the php://input stream wrapper. This can be useful
; to proxy requests or to process the POST data in a memory efficient fashion.
; http://php.net/enable-post-data-reading
;enable_post_data_reading = Off


READ CAREFULLY: the only way you will be able to read the POST data will be through the php://input stream wrapper

Test script:
---------------
set php.ini:

enable_post_data_reading = Off

and try to get POST data by

file_get_contents('php://input')

Expected result:
----------------
[POST data string]

(PHP 5.5 works perfect)

Actual result:
--------------
empty string

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-03 23:09 UTC] requinix@php.net
-Status: Open +Status: Duplicate
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC