#22805 [Fbk->Ver]: Long input fields get truncated when posted (to about 1kb)

From: Date: Fri, 21 Mar 2003 06:06:34 +0000
Subject: #22805 [Fbk->Ver]: Long input fields get truncated when posted (to about 1kb)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-36087@lists.php.net to get a copy of this message
ID: 22805 Updated by: moriyoshi@php.net Reported By: M dot Hankus at ce3 dot pl -Status: Feedback +Status: Verified Bug Type: Apache2 related Operating System: Linux PHP Version: 4.3.2RC1 New Comment: This is a brand-new apache2handler bug. Previous Comments: ------------------------------------------------------------------------ [2003-03-20 17:20:56] sniper@php.net You're sure you don't have that <files *.php> section?? ------------------------------------------------------------------------ [2003-03-20 09:25:29] M dot Hankus at ce3 dot pl According to bug #18648 my apache is configured correctly. I also compiled php 4.3.1 with apache 2.0.44 and it works fine . Something is wrong only with 4.3.2RC1+ . In 4.3.2RC adding enctype="multipart/form-data" to form solved the problem (like in bug #18648). ------------------------------------------------------------------------ [2003-03-20 08:04:50] moriyoshi@php.net See bug #18648. That seems due to the misconfigured httpd.conf. ------------------------------------------------------------------------ [2003-03-20 07:34:28] M dot Hankus at ce3 dot pl 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 this bug report at http://bugs.php.net/?id=22805&edit=1

« previous php.bugs (#36087) next »