Bug #67942 [Fbk->Nab]: $_POST silently drops empty fields

From: Date: Mon, 01 Sep 2014 14:58:13 +0000
Subject: Bug #67942 [Fbk->Nab]: $_POST silently drops empty fields
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187368@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67942&edit=1 ID: 67942 Updated by: johannes@php.net Reported by: robinhood70 at live dot ca Summary: $_POST silently drops empty fields -Status: Feedback +Status: Not a bug Type: Bug Package: *URL Functions Operating System: Linux (various) PHP Version: 5.4.32 Block user comment: N Private report: N New Comment: This is expected behavior. You need a = at least. We don't plan to change this due to BC issues as some applications assume those to be ignored by PHP :/ Previous Comments: ------------------------------------------------------------------------ [2014-09-01 07:36:51] fa@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. From a very quick testing I either misunderstood you or could not reproduce it. ------------------------------------------------------------------------ [2014-09-01 06:37:11] robinhood70 at live dot ca Description: ------------ Sending GET and POST requests such as: http://mysite/script.php?param1=value1&boolvalue2&param3=value3 $_GET returns param1, boolvalue2, and param3. file_get_contents("php://input") also returns all three. $_POST returns param1 and param3, but boolvalue2 is ignored. Expected result: ---------------- Results should be the same, regardless of method. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67942&edit=1

« previous php.bugs (#187368) next »