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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugzilla77 at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Mon Oct 14 18:01:28 2024 UTC