#22805 [NEW]: Long input fields get truncated when posted (to about 1kb)

From: Date: Thu, 20 Mar 2003 13:34:28 +0000
Subject: #22805 [NEW]: Long input fields get truncated when posted (to about 1kb)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-36035@lists.php.net to get a copy of this message
From: M dot Hankus at ce3 dot pl Operating system: Linux PHP version: 4.3.2RC1 PHP Bug Type: *General Issues Bug description: Long input fields get truncated when posted (to about 1kb) 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. -- Edit bug report at http://bugs.php.net/?id=22805&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22805&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22805&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22805&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22805&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22805&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22805&r=support Expected behavior: http://bugs.php.net/fix.php?id=22805&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22805&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22805&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22805&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22805&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22805&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22805&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22805&r=gnused

« previous php.bugs (#36035) next »