ID: 30999
User updated by: kkoehler at comcast dot net
Reported By: kkoehler at comcast dot net
Status: Open
Bug Type: *URL Functions
Operating System: Linux mis 2.4.21-4.EL #1-Red Hat
PHP Version: 5.0.2
New Comment:
We rolled back to 4.3.8 and it is doing it there also. But I'm running
4.3.8 locally on Windows XP and it is not happening. So it might be
something with the OS??? This is a major issue so any help would be
appreciated.
Previous Comments:
------------------------------------------------------------------------
[2004-12-06 19:39:43] kkoehler at comcast dot net
Here is test code using smarty. You'll probably have to change the
configs a bit:
Template:
<html>
<body>
<form name="articulate" method=POST action="testa.php">
<a href="javascript:document.articulate.submit()"
class="listlink2"><img src="/images/save.gif" border="0"></a>
<table>
<td class="warning" align="left">
<textarea name="testdesc" cols="94" rows="17" >{$testdesc}</textarea>
</td>
</tr>
</table>
</td>
</table>
</center>
</form>
</body>
</html>
PHP code:
<?php
ob_start();
define('SMARTY_DIR', 'C:\Program Files\Apache
Group\Apache2\htdocs\Smarty-2.6.6/libs/');
require(SMARTY_DIR . 'Smarty.class.php');
function getSmarty()
{
$smarty = new Smarty;
$smarty->template_dir = 'templates/';
$smarty->compile_dir = 'templates_c/';
$smarty->config_dir = 'configs/';
$smarty->cache_dir = 'cache/';
return $smarty;
}
session_start();
$smarty = getSmarty();
print_r($_POST);
$test = $_POST['testdesc'];
$smarty->assign('testdesc', $test);
$smarty->display('testa.tpl');
ob_end_flush();
?>
------------------------------------------------------------------------
[2004-12-06 18:57:05] kkoehler at comcast dot net
Apache 2.0.46
cryus-sasl-gssapi-2.1.15-3
------------------------------------------------------------------------
[2004-12-06 18:43:47] [EMAIL PROTECTED]
Which SAPI interface, and what Apache configuration are you using?
------------------------------------------------------------------------
[2004-12-06 18:41:25] [EMAIL PROTECTED]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2004-12-06 18:35:18] kkoehler at comcast dot net
More testing - when I run this script on 5.0.2
<html>
<form method="post" action="<?= $_SERVER['PHP_SELF']; ?>">
<textarea name="ta"></textarea>
<input type="submit" value="try this"/>
</form>
<pre><?php print_r( $_POST ); ?></pre>
</html>
If I enter "Hello", this displays:
Array
(
[ta] => Hellota=Hello
)
On 4.3.8 it displays:
Array
(
[ta] => Hello
)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/30999
--
Edit this bug report at http://bugs.php.net/?id=30999&edit=1