|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-11-29 08:12 UTC] msopacua@php.net
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){
}
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
You have: <?php var_dump($_REQUEST, $_POST); ?> </pre> output: array(0){ } This suggests one exists, it's just empty. Which one I wonder...cut and paste error on my part - sorry bout that. The output should be array{0} twice.