Bug #71128 [NEW]: iconv generates Bus error
From: erwin at houtsmabedrijfsadvies dot nl
Operating system: FreeBSD 10.2-RELEASE-p7
PHP version: 7.0.0
Package: ICONV related
Bug Type: Bug
Bug description:iconv generates Bus error
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 bug report at https://bugs.php.net/bug.php?id=71128&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71128&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71128&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71128&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71128&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71128&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71128&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71128&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71128&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71128&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71128&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71128&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71128&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71128&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71128&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71128&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71128&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71128&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71128&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71128&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71128&r=mysqlcfg
Thread (3 messages)
- erwin at houtsmabedrijfsadvies dot nl