php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71012 register_shutdown_function handle a nonentity error
Submitted: 2015-12-02 02:55 UTC Modified: 2015-12-02 03:58 UTC
From: hi at hisune dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 5.6.16 OS: centos
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hi at hisune dot com
New email:
PHP Version: OS:

 

 [2015-12-02 02:55 UTC] hi at hisune dot com
Description:
------------
When i used register_shutdown_function and file_get_contents('php://input').
It will trigger error message:
Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0

But i did not used $HTTP_RAW_POST_DATA!!!

Test script:
---------------
<?php
function test()
{
    if($e = error_get_last())
        var_dump($e);
}
register_shutdown_function('test');

var_export(file_get_contents('php://input'));exit;



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-02 03:58 UTC] hi at hisune dot com
-Status: Open +Status: Closed
 [2015-12-02 03:58 UTC] hi at hisune dot com
not a bug, sorry!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 06:01:38 2025 UTC