From:             security at isnnetworks dot net
Operating system: Linux, Centos 4.4
PHP version:      5.2.0
PHP Bug Type:     *General Issues
Bug description:  Not populating $_POST data

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 bug report at http://bugs.php.net/?id=39647&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39647&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39647&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39647&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39647&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39647&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39647&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39647&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39647&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39647&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39647&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39647&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39647&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39647&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39647&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39647&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39647&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39647&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39647&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39647&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39647&r=mysqlcfg

Reply via email to