|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-28 03:50 UTC] michel at tourwerk dot de
[2006-10-28 06:56 UTC] pierre dot php at gmail dot com
[2006-10-28 07:46 UTC] michel at tourwerk dot de
[2006-10-28 08:01 UTC] derick@php.net
[2006-10-28 08:07 UTC] pierre dot php at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 16:00:02 2025 UTC |
Description: ------------ After updating filter extension from version 0.9.4 to 0.10.0 multi-value POST-Variables aren't filter as array, which does former version correctly. With version 0.10.0 and filter type "unsafe_raw" I've got nothing back, with 0.9.4 I've got the current result back With version 0.10.0 and filter type "callback" I've got nothing back, with 0.9.4 I've got the current result back, but both versions show me, that type of value in callback is string Reproduce code: --------------- <?php if ($_POST){ $value = input_get( INPUT_POST, "value", input_name_to_filter( "callback" ),array("check","checkArray") ); #$value1 = input_get( INPUT_POST, "value", input_name_to_filter( "unsafe_raw")); print_r($value); #print_r($value1); } class check{ function checkArray($wert){ echo gettype($wert); return $wert; } } ?> <html><body><form action="test.php" method="POST"> <input type="checkbox" name="value[]" value="A" /> A<br /> <input type="checkbox" name="value[]" value="B" /> B<br /> <input type="submit" name="submit" value="Test it"> </form></body></html> Expected result: ---------------- for instance array(0 => "A"); Actual result: -------------- version 0.9.4: array(0 => "A") version 0.10.0: empty string