From:             info at optima-software dot de
Operating system: Linux version 2.6.17-gentoo-r4
PHP version:      5.1.6
PHP Bug Type:     *Configuration Issues
Bug description:  Can not post HTML-Tags

Description:
------------
Since the last php-update I can not POST html-tags inside a string. If I
create a simple form within a textarea, after submit var_dump($_POST)
outputs just plain-text without the html-tags. As a result of that, all
CMS on my server don't work anymore. 

See what I did inside the code-area.

PHP Version 5.1.6-pl4-gentoo

configure command
++++++++++++++++++++++++++++++++++++++++++++
'./configure' '--prefix=/usr/lib/php5' '--host=i686-pc-linux-gnu'
'--mandir=/usr/lib/php5/man' '--infodir=/usr/lib/php5/info'
'--sysconfdir=/etc' '--cache-file=./config.cache' '--disable-cli'
'--with-apxs2=/usr/sbin/apxs2'
'--with-config-file-path=/etc/php/apache2-php5'
'--with-config-file-scan-dir=/etc/php/apache2-php5/ext-active'
'--without-pear' '--enable-bcmath' '--with-bz2' '--enable-calendar'
'--disable-ctype' '--with-curl' '--without-curlwrappers' '--disable-dbase'
'--disable-exif' '--without-fbsql' '--without-fdftk' '--disable-filepro'
'--enable-ftp' '--with-gettext' '--with-gmp' '--disable-hash'
'--without-hwapi' '--without-informix' '--without-kerberos'
'--enable-mbstring' '--with-mcrypt' '--disable-memory-limit'
'--without-mhash' '--without-ming' '--without-msql' '--without-mssql'
'--with-ncurses' '--with-openssl' '--with-openssl-dir=/usr'
'--disable-pcntl' '--with-pgsql' '--disable-posix' '--without-pspell'
'--without-recode' '--disable-simplexml' '--disable-shmop'
'--without-snmp' '--enable-soap' '--enable-sockets' '--without-sybase'
'--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem'
'--disable-sysvshm' '--with-tidy' '--disable-tokenizer' '--disable-wddx'
'--with-xmlrpc' '--without-xsl' '--with-zlib' '--disable-debug'
'--enable-dba' '--without-cdb' '--with-db4' '--without-flatfile'
'--with-gdbm' '--with-inifile' '--without-qdbm' '--with-freetype-dir=/usr'
'--with-t1lib=/usr' '--disable-gd-jis-conv' '--enable-gd-native-ttf'
'--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6'
'--with-gd' '--with-mysql=/usr/lib/mysql'
'--with-mysql-sock=/var/run/mysqld/mysqld.sock'
'--with-mysqli=/usr/bin/mysql_config' '--without-pdo-dblib'
'--with-pdo-mysql=/usr' '--without-pdo-odbc' '--with-pdo-pgsql'
'--with-pdo-sqlite=/usr' '--with-readline' '--without-libedit'
'--without-mm' '--with-sqlite=/usr' '--enable-sqlite-utf8'
++++++++++++++++++++++++++++++++++++++++++++

Reproduce code:
---------------
<form action="#" method="post">
  <fieldset style="width: 300px; margin: auto;">
    <legend>A simple form</legend>
    <label for="id_textarea">Input some text with html-tags
here</label><br />     
    <textarea id="id_textarea" name="text" rows="10"
cols="50"></textarea><br />
    <input type="submit" name="name" value="Submit"/>
  </fieldset>
</form>
<br />
<?php
  if ( isset ($_POST['text']) ){
        $output  = '<div>' . "\r\n";
    $output .= "\t" . '<h2>The output of $_POST inside a pre-tag</h2>' .
"\r\n";
    $output .= "\t" . '<pre style="border: 1px solid #ccc; padding:
5px;">';
    $output .= $_POST['text'];
    $output .= '</pre>' . "\r\n";
    $output .= '</div>' . "\r\n";
    echo($output);
  }
?>

Expected result:
----------------
Output of the string I sent.

Actual result:
--------------
Output of plain-text without html-tags

-- 
Edit bug report at http://bugs.php.net/?id=38991&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38991&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38991&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38991&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38991&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38991&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38991&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38991&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38991&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38991&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38991&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38991&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38991&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38991&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38991&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38991&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38991&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38991&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38991&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38991&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38991&r=mysqlcfg

Reply via email to