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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 09:01:29 2024 UTC