Bug #67991 [NEW]: always_populate_raw_post_data deprecation warning buggy
From: felix dot hassert+phpbugs at sevenval dot com
Operating system: Debian Linux
PHP version: 5.6.0
Package: *Web Server problem
Bug Type: Bug
Bug description:always_populate_raw_post_data deprecation warning buggy
Description:
------------
http://www.php.net/manual/en/migration56.deprecated.php
states, that a
warning is triggered, if always_populate_raw_post_data is _enabled_. In
my PHP.ini it is turned off:
always_populate_raw_post_data = Off
When I perform an _empty_ post request on any PHP file (even an empty
one), the deprecation warning occurs in my logs:
PHP Deprecated: 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
PHP version:
PHP 5.6.0 (cli) (built: Sep 3 2014 16:15:07)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
Test script:
---------------
cd whereever-your-docroot-is/
touch test.php
curl -X POST 'http://127.0.0.1:8080/test.php'
Expected result:
----------------
no warning
Actual result:
--------------
log message:
PHP Deprecated: 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
--
Edit bug report at https://bugs.php.net/bug.php?id=67991&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67991&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67991&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67991&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=67991&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=67991&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=67991&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=67991&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=67991&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=67991&r=support
Expected behavior: https://bugs.php.net/fix.php?id=67991&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=67991&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=67991&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=67991&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67991&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=67991&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=67991&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=67991&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=67991&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=67991&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=67991&r=mysqlcfg
Thread (2 messages)
- felix dot hassert+phpbugs at sevenval dot com