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:
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 ) Previous Comments: ------------------------------------------------------------------------ [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' ------------------------------------------------------------------------ [2004-12-06 17:54:47] kkoehler at comcast dot net Description: ------------ I'm using Smarty 2.6.5 also. When I have a $_POST coming in that is over 1300 bytes, it reads in the full data but takes a chunk at the bottom and duplicates it. So if you have over 1300 bytes, it reads in the 1300 bytes and then takes part of the last so many bytes and keeps duplicating it with every submit. I verified that the $_POST data has the duplicated data but the screen before submit does not. This same code works in 4.3.8 without any problem. Reproduce code: --------------- Here's the smarty code: <textarea name="cldescription" cols="94" rows="17" >{$dformVars.cldescription}</textarea> Piece of the PHP code: $description = trim($_POST['cldescription']); echo "SIZE " . strlen($description); Expected result: ---------------- What I see on the screen is what comes in via the $_POST. Actual result: -------------- As I keep reexecuting the code via submit, the size keeps growing. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30999&edit=1