[PHP-DEV] PHP 4.0 Bug #8936: Script containing characters with code >128 don't get POSTed variables From: ray <email protected>
Date: 01/26/01

From: ray <email protected>
Operating system: Debian Linux (Potato)
PHP version: 4.0.3pl1
PHP Bug Type: Scripting Engine problem
Bug description: Script containing characters with code &gt;128 don't get POSTed variables

If script which get variables from POST form
contain combination of characters with
code > 128 (national characters),
then this script don't get POSTed variables.

1. Not all character combinations cause problem
    Known combination: 199 208

2. GET form don't have such problem

3. Tested with 4.0.0b1 & 4.0.3pl1

--8<---- Form -------------------
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1257">
</head>
<form method="post" action="result.php" name="search">
    <input type="text" name="theme" size="8" maxlength="8"
class="ffield">
      <input type="submit" name="Submit" value="Go"
class="pushbtn">

</form>
</body>
</html>

--8<---- Reciving script(result.php) -------------------
<?PHP
echo gettype($theme).' o '.$theme;
?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1257">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
  <tr align="center" bgcolor="#FF9900">
    <td class="title">XXXÇÐXXX</td>
  </tr>
</table>
</body>
</html>

--8<-----------------------

Check if string:
<td class="title">XXXÇÐXXX</td>
contains characters with code 199 208 between XXX

-- 
Edit Bug report at: http://bugs.php.net/?id=8936&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>