From:             [EMAIL PROTECTED]
Operating system: BSD/OS 4.2
PHP version:      4.3.0RC2
PHP Bug Type:     Scripting Engine problem
Bug description:  $_REQUEST not populated when there is no tmp dir or upload_tmp_dir 
not writable

Stumbled upon this, in a chrooted environment.

No php.ini (so default settings). No /tmp and /var/tmp or make
upload_tmp_dir not writeable for the webserver.

display_errors On
error_reporting 'no value' (E_ALL ^ E_NOTICE)

$_REQUEST/_POST are not populated.

Only when setting display_startup_errors to 'On', one gets a clue, what is
going on.

Example:
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="POST"
enctype="multipart/form-data">
<input type="hidden" name="this_var_should_be_set" value="foo" />
<input type="file" name="userfile" />
<input type="submit" value="test" />
</form>
<pre>
<?php
var_dump($_REQUEST, $_POST);
?>
</pre>

output:
array(0){
}
-- 
Edit bug report at http://bugs.php.net/?id=20725&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20725&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20725&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20725&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20725&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20725&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20725&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20725&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20725&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20725&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20725&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20725&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20725&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20725&r=isapi

Reply via email to