#39647 [Fbk->Opn]: Not populating $_POST data
| From: | security at isnnetworks dot net | Date: | Mon, 27 Nov 2006 17:30:48 +0000 |
| Subject: | #39647 [Fbk->Opn]: Not populating $_POST data | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105491@lists.php.net to get a copy of this message | ||
ID: 39647
User updated by: security at isnnetworks dot net
Reported By: security at isnnetworks dot net
-Status: Feedback
+Status: Open
Bug Type: CGI related
Operating System: Linux, Centos 4.4
PHP Version: 5.2.0
New Comment:
The phpinfo can be seen here,
http://tinyurl.com/yhkr6y
The script(points to ,php5 extension here)
http://tinyurl.com/yh67oh
Necessary httpd.conf lines,
Action application/x-httpd-php5 "/cgi-sys/php5"
AddType application/x-httpd-php5 .php5
ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/
# /usr/local/cpanel/cgi-sys/php5 -v
PHP 5.2.1-dev (cgi) (built: Nov 27 2006 05:40:40) (DEBUG)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
Previous Comments:
------------------------------------------------------------------------
[2006-11-27 17:24:17] tony2001@php.net
Please make sure that PHP actually receives the data and post all parts
of your httpd.conf related to CGI configuration.
Also please upload your phpinfo() somewhere and post the link here.
------------------------------------------------------------------------
[2006-11-27 16:59:18] security at isnnetworks dot net
Description:
------------
Using php 5.2.0 and php 4.4.4 as a cgi module results in no $_POST data
being given.
The headers are being sent just php is returning nothing.
There is nothing in the error logs, nothing when setting E_ALL for
error_reporting. The DSO version works fine, this is a second
installation compiled with.
./configure --prefix=/usr/local/php5 --exec-prefix=/usr/local/php5
--program-suffix=5 --enable-force-cgi-redirect
Using --enable-debug doesn't return anything either.
Loaded into apache using,
Action application/x-httpd-php5 "/php/php5"
AddType application/x-httpd-php5 .php5
Where /php is a script-alias , does not work using --disgard-path
either.
I am not sure where to even start to see where the problem is, I have
tried everything. Recompiling with no options other than the prefix
etc, with debugging, changing the form enctype and still nothing.
Reproduce code:
---------------
<html>
<head>
</head>
<body>
<form action="test.php" method="post"
enctype="multipart/form-data">
<input type="input" name="test" value=""><br />
<input name="submit" type="submit"></form>
<pre>
<?php
ini_set('error_reporting', E_ALL);
print_r(get_defined_vars());
print_r($_POST);
print_r($_REQUEST);
print_r($_GET);
?>
</pre>
</body>
</html>
Expected result:
----------------
To see the data posted
Actual result:
--------------
No data in $POST
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39647&edit=1