php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42668 utf8_decode make a crash
Submitted: 2007-09-14 11:58 UTC Modified: 2007-09-24 01:00 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: sqlb at vfst dot de Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.2.4 OS: linux
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: sqlb at vfst dot de
New email:
PHP Version: OS:

 

 [2007-09-14 11:58 UTC] sqlb at vfst dot de
Description:
------------
utf8_decode() make a crash

php.log: no entry
error.log: no entry
/var/log/messages: no entry
access.log: "GET test.php HTTP/1.1" 200 2 
without echo 'A';:
"GET test.php HTTP/1.1" 500 0

iconv("UTF-8", "ISO-8859-1", 'Hallo'); is working

make test: a report was sending

CFLAGS="-O3 -mcpu=pentium4 -march=pentium4"
CPPFLAGS="-O3 -mcpu=pentium4 -march=pentium4"
CXXFLAGS="-O3 -mcpu=pentium4 -march=pentium4"
export CFLAGS
export CPPFLAGS
export CXXFLAGS
./configure \
--prefix=/usr/local/apache2 \
--with-apxs2=/usr/local/apache2/bin/apxs \
--enable-shared \
--enable-soap \
--with-zlib \
--with-openssl \
--disable-cgi \
--disable-xml \
--disable-xmlreader \
--disable-xmlwriter \
--disable-dom \
--disable-pdo \
--disable-debug \
--without-pear \
--with-config-file-path=/etc/php5/apache2






Reproduce code:
---------------
<?php
echo 'A';
echo utf8_decode('Hallo');
echo 'B';
?>

Expected result:
----------------
AHalloB

Actual result:
--------------
A

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-16 14:48 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi

Works fine in latest CVS
 [2007-09-24 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-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 04:01:27 2025 UTC