Bug #71128 [Fbk->Csd]: iconv generates Bus error
| From: | erwin at houtsmabedrijfsadvies dot nl | Date: | Wed, 16 Dec 2015 09:19:53 +0000 |
| Subject: | Bug #71128 [Fbk->Csd]: iconv generates Bus error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197923@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71128&edit=1
ID: 71128
User updated by: erwin at houtsmabedrijfsadvies dot nl
Reported by: erwin at houtsmabedrijfsadvies dot nl
Summary: iconv generates Bus error
-Status: Feedback
+Status: Closed
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:
My apologies for this bugreport. I recompiled the PHP7.0.1RC1 and it is working fine now. Don't
know what went wrong, but now it's working fine.
Apperantly I made an error in the configure arguments.
Previous Comments:
------------------------------------------------------------------------
[2015-12-15 19:38:55] ab@php.net
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.
------------------------------------------------------------------------
[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