Yesterday my host upgraded to PHP 5.6.x (with SUHOSIN) and all of a sudden some of the functionality in the backend stopped working (and the same thing can also be present ind the frontend)
After spending some hours investigation i found out that it was the test for empty POST variables that stopped working (function Tools::isSubmit)
The default admin theme (PS 1.6) has more than 100 entries of the form:
<button type="submit" ...>
I made a small script to test if the bug is present:
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (isset($_POST['emptypostvalue'])) {
echo "Empty POST variable received. Not hit by bug.";
die;
} else {
print "<pre>";
echo "Empty POST variable not received. Your system is affected.
";
print "Raw post data content:
";
print $data;
print "
\$_POST content:
";
var_dump($_POST);
print "</pre>";
die;
}
}
?>
Are you hit by the PHP 5.6.x / SUHOSIN empty POST value bug?
<form method="POST" action="test-empty-post-bug.php">
<input type="hidden" name="postvalue" value="1">
<button type="submit" name="emptypostvalue">
Test now
</button>
</form>