|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-03-20 08:04 UTC] moriyoshi@php.net
[2003-03-20 09:25 UTC] M dot Hankus at ce3 dot pl
[2003-03-20 17:20 UTC] sniper@php.net
[2003-03-21 00:06 UTC] moriyoshi@php.net
[2003-03-21 16:36 UTC] moriyoshi@php.net
[2003-03-24 18:39 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 28 11:00:02 2025 UTC |
When you try to create form with inputs, which values are very big lets say 30k. When you submit such form, script responsible for accepting date will see only 1k of that data. example script: <?php $tekst="VERY LONG VARIABLE lets say 30k long"; if(isset($_POST["moj"])) echo " We have".strlen($_POST["moj"]); $tekst=htmlspecialchars($tekst); echo <<<KONIEC <html> <head> </head> <body> <form method="post"> <input type="hidden" name="moj" value="$tekst"> <input type="submit"> </form> </body> </html> KONIEC; ?> You must only initialize variable $tekst with long string about 30k and observe results. In my case script shows: apache 1.3.27 + php 4.3.1: 29100 apache 2.0.44 + php 4.3.2RC1: 1012 (same script and same php.ini) apache 2.0.44 + php4-STABLE-200303201230: 1012 I know that bug like this was reported earlier but for different version of php.