From: j dot parree at net-communications dot de
Operating system: Suse Linux 9.2
PHP version: 4.3.7
PHP Bug Type: Unknown/Other Function
Bug description: Special Char Strings in $_POST are corrupt, while $HTTP_POST_VARS
works fine.
Description:
------------
Reading String Values containing special Chars (e.g. ����) from the
$_POST-Array will result in having corrupt data.
Doing the same with $HTTP_POST_VARS works fine.
Configure Statement:
---------------------------
'./configure' '--prefix=/opt/lampp' '--with-apxs2=/opt/lampp/bin/apxs'
'--with-config-file-path=/opt/lampp/etc' '--with-mysql=/opt/lampp'
'--disable-debug' '--enable-bcmath' '--enable-calendar' '--enable-ctype'
'--enable-dbase' '--enable-discard-path' '--enable-exif'
'--enable-filepro' '--enable-force-cgi-redirect' '--enable-ftp'
'--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--with-ttf'
'--enable-magic-quotes' '--enable-memory-limit' '--enable-safe-mode'
'--enable-shmop' '--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm'
'--enable-track-vars' '--enable-trans-sid' '--enable-versioning'
'--enable-wddx' '--enable-yp' '--with-ftp' '--with-gdbm=/opt/lampp'
'--with-jpeg-dir=/opt/lampp' '--with-png-dir=/opt/lampp'
'--with-tiff-dir=/opt/lampp' '--with-freetype-dir=/opt/lampp'
'--without-xpm' '--with-zlib=yes' '--with-zlib-dir=/opt/lampp'
'--with-openssl=/opt/lampp' '--with-expat-dir=/opt/lampp' '--enable-xslt'
'--with-xslt-sablot=/opt/lampp' '-with-ming=/opt/lampp'
'--with-dom=/opt/lampp' '--with-ldap=/opt/lampp'
'--with-ncurses=/opt/lampp' '--with-gd' '--with-imap-dir=/opt/lampp'
'--with-imap-ssl' '--with-imap=/opt/lampp' '--with-gettext=/opt/lampp'
'--with-mssql=/opt/lampp' '--with-interbase=/opt/interbase'
'--with-mysql-sock=/opt/lampp/var/mysql/mysql.sock' '--with-oci8=shared'
'--with-mcrypt=/opt/lampp' '--with-mhash=/opt/lampp' '--enable-sockets'
'--enable-mbstring=all' '--with-curl=/opt/lampp' '--enable-mbregex'
'--enable-zend-multibyte' '--with-zip=/opt/lampp' '--enable-exif'
'--with-bz2=/opt/lampp'
---------------------------------
Software Versions:
----------------------------------------
- Apache 2.0.49
- MySQL 4.0.20
- PHP 4.3.7
- Perl 5.8.4
- ProFTPD 1.2.9
- phpMyAdmin 2.5.6
- OpenSSL 0.9.7d
- GD 2.0.1
- Freetype 2.1.7
- libjpeg 6b
- libpng 1.2.2
- gdbm 1.8.0
- zlib 1.1.4
- expat 1.2
- Sablotron 1.0
- libxml 2.4.26
- Ming 0.2a
- Webalizer 2.01
- pdf class 009e
- ncurses 5.8
- mod_perl 1.99_13
- FreeTDS 0.60
- gettext 0.11.5
- IMAP C-Client 2002b
- OpenLDAP (client) 2.1.30
- mhash library 0.8.18
- mcrypt library 2.5.7
- Turck MMCache 2.4.6
- cURL 7.10.7
- SQLite (2.8.9)
----------------------------------------
Reproduce code:
---------------
CODE:
print_r($HTTP_POST_VARS['string']);
print_r($_POST['string']);
Expected result:
----------------
Expected:
"F�nf Millionen Euro f�r Klose"
Actual result:
--------------
Actual:
"F?Millionen Euro f?lose"
--
Edit bug report at http://bugs.php.net/?id=29319&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29319&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29319&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29319&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29319&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29319&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29319&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29319&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29319&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29319&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29319&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29319&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29319&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29319&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29319&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29319&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29319&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29319&r=float