Bug #71128 [Opn->Fbk]: iconv generates Bus error
Edit report at https://bugs.php.net/bug.php?id=71128&edit=1
ID: 71128
Updated by: ab@php.net
Reported by: erwin at houtsmabedrijfsadvies dot nl
Summary: iconv generates Bus error
-Status: Open
+Status: Feedback
Type: Bug
Package: ICONV related
Operating System: FreeBSD 10.2-RELEASE-p7
PHP Version: 7.0.0
Block user comment: N
Private report: N
New Comment:
Could you please manage to post a backtrace https://bugs.php.net/bugs-generating-backtrace.php?
My Linux and Windows builds don't crash with your repro case.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2015-12-15 15:11:54] erwin at houtsmabedrijfsadvies dot nl
Description:
------------
I've build PHP7.0.0 from the releases, as well as 7.0.1RC1 to test my sites before upgrading.
One of the issues I encountered was the fact that when I use the iconv functions, it crashes the
script with a Bus error (core dumped).
iconv is running fine. Both through the command line as well as with PHP5.6.16.
Running the testscript on 7.0.0 or 7.0.1RC1 exits with:
Bus error (core dumped)
In PHP5.6.16 it returns the following response:
ç¥ç´ç´ç©æ¹§
Test script:
---------------
<?php
echo iconv('UTF-16', 'UTF-8', 'teststring');
?>
Expected result:
----------------
ç¥ç´ç´ç©æ¹§
Actual result:
--------------
Bus error (core dumped)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71128&edit=1
Thread (3 messages)