php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41879 POST array becomes empty
Submitted: 2007-07-02 23:27 UTC Modified: 2007-07-10 01:00 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (33.3%)
From: getmequick at gmail dot com Assigned:
Status: No Feedback Package: Session related
PHP Version: 5.2.3 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: getmequick at gmail dot com
New email:
PHP Version: OS:

 

 [2007-07-02 23:27 UTC] getmequick at gmail dot com
Description:
------------
We have recently installed SSL support to our domain and some problems
came up, 

When we submit html form by using POST method, we get session vars instead in $_POST array or just empty array, if there no session vars registered.

This happens only if we start session before, if we don't, $_POST array has values as expected.

Reproduce code:
---------------
test1.php page

<form action="test2.php" method="post">
<input type="text" name="text" />
<input type="submit" name="text2" value="Submit" />
</form>


------------
test2.php page
<?php
session_start();
print_r($_POST);
?>

Expected result:
----------------
Array ( [text] => blah [text2] => Submit  )

Actual result:
--------------
Array ( )

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-02 23:33 UTC] sniper@php.net
What SAPI are you using? (Apache, CGI / FastCGI, something else?)
 [2007-07-02 23:42 UTC] getmequick at gmail dot com
it's Apache 1.3x
 [2007-07-02 23:44 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi

There was one issue fixed in CVS which _might_ be causing this so please try the snapshot. Lot of other issues were fixed too, so if you encounter any other problems, don't hesitate reporting them too in separate reports!
 [2007-07-02 23:55 UTC] getmequick at gmail dot com
OK, where do I find the latest snapshot's changelog?
 [2007-07-03 00:23 UTC] sniper@php.net
The urls posted above direct you to packages to download and those packages contain the NEWS file with all fixes and changes, etc.
 [2007-07-10 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2007-12-13 01:26 UTC] chili at tea dot club dot ne dot jp
Does 5.2.3 or CurrentVersion have this fix?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC