From:             sqlb at vfst dot de
Operating system: linux
PHP version:      5.2.4
PHP Bug Type:     Reproducible crash
Bug description:  utf8_decode make a crash

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 bug report at http://bugs.php.net/?id=42668&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42668&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42668&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42668&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42668&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42668&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42668&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42668&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42668&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42668&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42668&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42668&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42668&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42668&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42668&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42668&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42668&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42668&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42668&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42668&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42668&r=mysqlcfg

Reply via email to