|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-09-18 09:34 UTC] jani@php.net
[2007-09-18 17:23 UTC] buganini at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 10:00:01 2025 UTC |
Description: ------------ Under Windows 2003 IIS 6, I had a list of <input type="text" name="blah[]" /> and I had var_dump($_POST['blah']); in the action page I got: string(5) "Array" !@#$%^&* ================ After I turned magic_quotes_gpc to off, I got what I want: array(2) { [0]=> string(4) "blah" [1]=> string(4) "bluh" } I thought it is because magic_quotes_gpc forget to consider data type while adding slashes. //This problem dosen't exist under FreeBSD Reproduce code: --------------- <input type="text" name="blah[]" /> <input type="text" name="blah[]" /> var_dump($_POST['blah']); Expected result: ---------------- array(2) { [0]=> string(4) "blah" [1]=> string(4) "bluh" } Actual result: -------------- string(5) "Array"