php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74391 _POST empty on invalid request
Submitted: 2017-04-08 08:46 UTC Modified: 2018-09-02 09:36 UTC
From: javan dot solo at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: Apache2 related
PHP Version: 7.1.2 OS: windows 7 64x
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: javan dot solo at gmail dot com
New email:
PHP Version: OS:

 

 [2017-04-08 08:46 UTC] javan dot solo at gmail dot com
Description:
------------
I send file invalid size file and other param on form.
but $_REQUEST or $_POST is empty!

<?php print_r($_REQUEST); ?>

Test script:
---------------
<?php print_r($_REQUEST); ?>
<?php print_r($_POST); ?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-08 09:16 UTC] daverandom@php.net
-Status: Open +Status: Feedback
 [2017-04-08 09:16 UTC] daverandom@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.


 [2017-04-08 09:46 UTC] javan dot solo at gmail dot com
-Summary: 7.1.3 +Summary: php-7.1.2-Win32-VC14-x64 -Status: Feedback +Status: Open -PHP Version: 7.1.3 +PHP Version: 7.1.2
 [2017-04-08 09:46 UTC] javan dot solo at gmail dot com
send file jpg 8M and on php.ini upload_max_filesize = 2M
send file and other paramater form example text=12354asd;

I expect $_REQUEST equal ['text'=>"12354asd"]
In the event that $_REQUEST is empty!!!!!!!!
and $_POST is empty
why?
 [2017-04-08 10:03 UTC] javan dot solo at gmail dot com
<!doctype html>
<html lang="en">
<body>
<form action=".<?php echo $_SERVER['SCRIPT_NAME'] ?>" method="post" enctype="multipart/form-data">
    <input type="file" name="file" id="file">
    <br>
    <input type="text" name="txt" id="txt" value="123asd" title="txt">
    <br>
    <input type="submit" value="sumbit">
</form>
<pre>
<?php if($_SERVER['REQUEST_METHOD'] == 'POST'){
    print_r($_REQUEST);
    print_r($_FILES);
    die();
}
?>
</pre>
</body>
</html>
 [2017-04-08 10:20 UTC] javan dot solo at gmail dot com
<!doctype html>
<html lang="en">
<body>
send large file
<form action=".<?php echo $_SERVER['SCRIPT_NAME'] ?>" method="post" enctype="multipart/form-data">
    <input type="file" name="file" id="file">
    <br>
    <input type="text" name="txt" id="txt" value="123asd" title="txt">
    <br>
    <input type="submit" value="sumbit">
</form>
<pre>
<?php if($_SERVER['REQUEST_METHOD'] == 'POST'){
    print_r($_REQUEST);
    print_r($_FILES);
    die();
}
?>
</pre>
</body>
</html>
 [2017-04-09 00:15 UTC] stas@php.net
-Status: Open +Status: Not a bug -Package: PHP Language Specification +Package: IIS related
 [2017-04-09 00:15 UTC] stas@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 [2017-04-09 00:16 UTC] stas@php.net
-Status: Not a bug +Status: Open
 [2017-04-09 00:16 UTC] stas@php.net
Maybe somebody familiar with IIS can check it out and see if it's ok.
 [2017-04-09 00:17 UTC] stas@php.net
-Summary: php-7.1.2-Win32-VC14-x64 +Summary: _POST empty on invalid request
 [2017-04-10 14:52 UTC] javan dot solo at gmail dot com
I use apache 2.4 64bit on windows7 64bit and FcgidWrapper php-cgi.exe 64bit
 [2017-04-10 15:08 UTC] javan dot solo at gmail dot com
pls test in url :
http://royansoft.com/test.php
 [2018-08-14 17:40 UTC] cmb@php.net
-Status: Open +Status: Feedback -Package: IIS related +Package: Apache2 related -Assigned To: +Assigned To: cmb
 [2018-08-14 17:40 UTC] cmb@php.net
> I use apache 2.4 64bit […]

Okay, fixing the package.

Anyhow, what's the value of the ini setting post_max_size?
 [2018-09-02 09:36 UTC] cmb@php.net
-Status: Feedback +Status: No Feedback
 [2018-09-02 09:36 UTC] cmb@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 08:01:27 2024 UTC