php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29319 Special Char Strings in $_POST are corrupt, while $HTTP_POST_VARS works fine.
Submitted: 2004-07-22 11:16 UTC Modified: 2004-12-15 01:00 UTC
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: j dot parree at net-communications dot de Assigned:
Status: No Feedback Package: Variables related
PHP Version: 4.3.7 OS: Suse Linux 9.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: j dot parree at net-communications dot de
New email:
PHP Version: OS:

 

 [2004-07-22 11:16 UTC] j dot parree at net-communications dot de
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"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-24 23:40 UTC] moriyoshi@php.net
Are there any mbstring settings enabled in your php.ini?

 [2004-08-06 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2004-08-16 11:02 UTC] j dot parree at net-communications dot de
No, there are no mbstring settings enabled!
Should they?

[mbstring]
; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
;mbstring.internal_encoding = EUC-JP

; http input encoding.
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
;mbstring.http_output = SJIS

; automatic encoding detection order.
; auto means 
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. 
;mbstring.func_overload = No
 [2004-12-15 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 10:01:28 2024 UTC