POST bug - php4 with cyrillic letters
[email protected] ("Serg Prasolov") Wed, 14 Jun 2000 17:35:22 +0400
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <[email protected]> |
Hi!
There is a stable bug in zend(php) 4.0.0 . When one does POST containing
cyrillic letters (I suppose ascii > 128), post body has been cut somewhere
around 4K border.
Well, it may be feature, but could anybody please tell how to work it
around?
The text quoted below is working at www.atlant.ru/2.phtml . Note that the
bug works only if you use _many_ cyrillic letters. If you want to try and
have no cyrillic text, get it on www.atlant.ru/cyr.txt .
Program to show the bug is :
<?php
print($HTTP_POST_VARS["text"]);
print("<br>\n");
$vars = $HTTP_POST_VARS;
while (list($header, $value) = each($vars)) {
print("$header=$value<br>");
}
echo("<br>");
$dl=getenv("CONTENT_LENGTH");
print("length=$dl<br>\n");
echo("<br>");
echo("<form method=post action=$PHP_SELF>\n");
echo("<textarea name=text cols=50 rows=5></textarea>\n");
echo("<input type=submit value=send>\n");
echo("</form><br>\n");
echo("<pre>$text</pre>".strlen($text)."<br>\n");
?>
We have :
Server: Apache/1.3.9 (Unix) ... PHP/4.0.0 ... rus/PL28.22
X-Powered-By: PHP/4.0.0
phpinfo() says :
System: Linux bear.atlant.ru 2.2.14 #4 SMP Thu Jan 13 15:29:09 MSK 2000 i686
'./configure' '--disable-debug' '--with-mod_charset'
'--with-apache=/usr/src/apache' '--prefix=/usr/local/zend'
'--enable-memory-limit' '--with-regex=php' '--with-swf=/usr/src/libswf'
'--enable-trans-sid' '--with-mm=/usr/src/mm-1.0.12'
'--with-config-file-path=/usr/local/apache/conf'
'--with-mysql=/usr/local/mysql'
'--enable-safe-mode' '--enable-track-vars' '--enable-magic-quotes'
'--with-gd=yes'
Yours,
Serg Prasolov
system administrator, postmaster
in Atlant ISP, St.-Petersburg, Russia
Home page: http://ci.atlant.ru
RIPN nick: SPCI-RIPN
ICQ# 28342703