#42668 [Opn->Fbk]: utf8_decode make a crash
ID: 42668
Updated by: iliaa@php.net
Reported By: sqlb at vfst dot de
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: linux
PHP Version: 5.2.4
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2007-09-14 11:58:39] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42668&edit=1
Thread (2 messages)