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:

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();

?>


Previous Comments:
------------------------------------------------------------------------

[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
)

------------------------------------------------------------------------

[2004-12-06 18:20:13] kkoehler at comcast dot net

Also, here is more information:

Apache/2.0.46 (Red Hat) 

core prefork http_core mod_so mod_access mod_auth mod_auth_anon
mod_auth_dbm mod_auth_digest mod_include mod_log_config mod_env
mod_mime_magic mod_cern_meta mod_expires mod_deflate mod_headers
mod_usertrack mod_unique_id mod_setenvif mod_mime mod_dav mod_status
mod_autoindex mod_asis mod_info mod_dav_fs mod_vhost_alias
mod_negotiation mod_dir mod_imap mod_actions mod_speling mod_userdir
mod_alias mod_rewrite mod_proxy proxy_ftp proxy_http proxy_connect
mod_cache mod_suexec mod_disk_cache mod_file_cache mod_mem_cache
mod_cgi mod_auth_mysql mod_auth_pgsql mod_authz_ldap mod_perl
sapi_apache2 mod_python mod_ssl 

./configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu'
'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect'
'--disable-debug' '--enable-pic' '--enable-inline-optimization'
'--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd'
'--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext'
'--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr'
'--with-openssl' '--with-png' '--with-pspell' '--with-pcre=/usr'
'--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif'
'--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode'
'--enable-sockets' '--enable-sysvsem' '--enable-sysvshm'
'--enable-discard-path' '--enable-track-vars' '--enable-trans-sid'
'--enable-yp' '--enable-mbstring' '--enable-mbstr-enc-trans'
'--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl'
'--with-kerberos=/usr/kerberos' '--with-mysql=shared,/usr'
'--with-ldap' '--with-oci8=/opt/oracle/product/9.2.0'
'--with-pgsql=shared' '--with-unixODBC=shared' '--enable-memory-limit'
'--enable-bcmath' '--enable-shmop' '--enable-versioning'
'--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal'
'--with-apxs2filter=/usr/sbin/apxs' '--enable-sigchild' '--enable-cli'
'--enable-libgcc' '--with-java=/usr/local/j2sdk1.3.1'
'--with-tsrm-pthreads' '--enable-embed'

------------------------------------------------------------------------

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

Reply via email to