php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43235 Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt]
Submitted: 2007-11-10 15:20 UTC Modified: 2007-11-18 01:00 UTC
Votes:21
Avg. Score:4.0 ± 0.9
Reproduced:20 of 20 (100.0%)
Same Version:11 (55.0%)
Same OS:5 (25.0%)
From: gashev at zahav dot net dot il Assigned:
Status: No Feedback Package: ICONV related
PHP Version: 5.2.5 OS: Debian etch
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gashev at zahav dot net dot il
New email:
PHP Version: OS:

 

 [2007-11-10 15:20 UTC] gashev at zahav dot net dot il
Description:
------------
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :   53
Exts tested     :   26
---------------------------------------------------------------------

Number of tests : 4566              3131
Tests skipped   : 1435 ( 31.4%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :   10 (  0.2%) (  0.3%)
Tests passed    : 3121 ( 68.4%) ( 99.7%)
---------------------------------------------------------------------
Time taken      :  462 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt]
iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
money_format test [ext/standard/tests/strings/moneyformat.phpt]
Test setlocale() function : basic functionality - setting system locale to a specific [ext/standard/tests/strings/setlocale_basic1.phpt]
Test setlocale() function : basic functionality - set locale using an array [ext/standard/tests/strings/setlocale_basic2.phpt]
Test setlocale() function : basic functionality - passing multiple locales as argument [ext/standard/tests/strings/setlocale_basic3.phpt]
Test setlocale() function : usage variations - passing multiple valid/invlaid locales as argument [ext/standard/tests/strings/setlocale_variation1.phpt]
Test setlocale() function : usage variations - setting system locale = 0 [ext/standard/tests/strings/setlocale_variation3.phpt]
Test setlocale() function : usage variations - setting system locale as null [ext/standard/tests/strings/setlocale_variation4.phpt]
Test setlocale() function : usage variations - Setting system locale as empty string [ext/standard/tests/strings/setlocale_variation5.phpt]


Reproduce code:
---------------
'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/home/oleg/mysql' '--enable-mbstring' '--with-zlib' '--with-gd' '--with-jpeg-dir=/usr/local/lib' '--with-png-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib'

make all

make test


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-10 22:16 UTC] jani@php.net
Exactly how do these fail..?
 [2007-11-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2007-11-26 13:33 UTC] pete at partnercomm dot com
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :   48
Exts tested     :   31
---------------------------------------------------------------------

Number of tests : 4566              3159
Tests skipped   : 1407 ( 30.8%) --------
Tests warned    :    3 (  0.1%) (  0.1%)
Tests failed    :    3 (  0.1%) (  0.1%)
Tests passed    : 3153 ( 69.1%) ( 99.8%)
---------------------------------------------------------------------
Time taken      :  210 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt]
iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15) [ext/standard/tests/strings/htmlentities02.phpt] (warn: possibly braindead libc)
htmlentities() test 4 (setlocale / ja_JP.EUC-JP) [ext/standard/tests/strings/htmlentities04.phpt] (warn: possibly braindead libc)
htmlentities() test 15 (setlocale / KOI8-R) [ext/standard/tests/strings/htmlentities15.phpt] (warn: possibly braindead libc)
Test setlocale() function : usage variations - Setting all available locales in the platform [ext/standard/tests/strings/setlocale_variation2.phpt]
=====================================================================

This is from running the "make test" script. 

Using GCC 4.1.2:
   Thread model: posix
   gcc version 4.1.2 20070925 (Red Hat 4.1.2-27)

System is Fedora 7.

Kernel:
   Linux evolution.partnercomm.com 2.6.23.1-21.fc7 #1 SMP Thu Nov 1 21:09:24 EDT 2007 i686 i686 i386 GNU/Linux
 [2007-11-26 13:41 UTC] pete at partnercomm dot com
Sorry - additional info:

Configure line:

./configure --with-iconv --enable-mbstring=all --enable-mbregex --with-apxs2=/usr/local/apache2/bin/apxs --with-gettext --with-imap=/usr/local/imap-2006k/ --with-imap-ssl --with-mcrypt --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --with-openssl --with-gd --with-kerberos --with-mime-magic=/usr/share/file/magic.mime

I can provide the config.log if that would be helpful, though I didn't see anything of interest in there.
 [2007-12-22 07:05 UTC] morgon at mygamercard dot net
Experiencing same issue on new CentOS 5 install.

[root@card3 php-5.2.5]# cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Xeon(TM) CPU 3.00GHz
stepping        : 3
cpu MHz         : 2992.868
cache size      : 2048 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl cid cx16 xtpr
bogomips        : 5988.37

(Snip - two processors)

Also, this may be related - I had previously had this build running (I admit I'm not a big 'make test'er) and would get all sorts of faults which seem to indicate a problem between PHP 5.2.5 and glibc

*** glibc detected *** /usr/bin/php-cgi: malloc(): memory corruption (fast): 0x096fd108 ***
======= Backtrace: =========
/lib/libc.so.6[0x3ee631]
/lib/libc.so.6(__libc_malloc+0x7e)[0x3ef2ee]
/lib/libc.so.6(__strdup+0x30)[0x3f3d20]
/usr/bin/php-cgi(fcgi_putenv+0x2f)[0x830e58f]
/usr/bin/php-cgi[0x8310b39]
/usr/bin/php-cgi(main+0x1590)[0x8312160]
/lib/libc.so.6(__libc_start_main+0xdc)[0x39cdec]
/usr/bin/php-cgi(xmlTextReaderConstName+0x149)[0x80b5471]


gcc version 4.1.2(-14.el5)
glibc version 2.5(-18.el5_1.1)

Configure.. messy, but that's what I want:
./configure  --prefix=/usr --with-config-file-path=/etc --enable-fastcgi --enable-force-cgi-redirect --enable-force-redirect --enable-discard-path --disable-ipv6 --with-openssl --with-zlib --with-bz2 --with-curl --enable-mbstring --with-mysqli=/usr/bin/mysql_config --disable-pdo --without-sqlite --with-gd --with-ttf --with-freetype-dir=/usr/local/lib --enable-gd-native-ttf --with-jpeg-dir --with-png-dir --enable-memcache --enable-inline-optimization --disable-debug
 [2008-12-12 17:02 UTC] bugsdotphpdotnet at ominian dot net
Experiencing the same problem but the weird part is visually I can't see why the tests fail.  I've copied and pasted the test's code and ran it, copied the output and run diff against the test expected result and the test script output... no difference?

$ TEST_PHP_EXECUTABLE='sapi/cli/php' sapi/cli/php -c /etc/php5/php.ini run-tests.php -c /etc/php5/php.ini ext/iconv/tests/bug16069.phpt

=====================================================================
PHP         : sapi/cli/php
PHP_SAPI    : cli
PHP_VERSION : 5.2.6
ZEND_VERSION: 2.2.0
PHP_OS      : Linux - Linux fozzie 2.6.18-53.1.6.el5 #1 SMP Wed Jan 23 11:28:47 EST 2008 x86_64
INI actual  : /etc/php5/php.ini
More .INIs  :
CWD         : /home/davidw/packages/php-5.2.6
Extra dirs  :
=====================================================================
Running selected tests.
FAIL Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt]
=====================================================================
Number of tests :    1                 1
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    1 (100.0%) (100.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    0 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt]
=====================================================================

Digging into it, I don't think this is a problem with PHP or the testing harness but with how Centos 5 handles unicode characters.  It looks like it converts the unicode characters to hexidecimal representation but not the php output.
 [2009-03-26 17:18 UTC] mlaster at wolrdsynergy dot com
So I am getting this same error. I uploaded my information. from the make test. I am guessing its ok to install?
 [2009-05-16 02:08 UTC] kenorb at gmail dot com
Similar  problem on testing PHP 5.2.9 on Red Hat Enterprise Linux ES 
release 3:
Bug #16069 (ICONV transliteration failure) 
[ext/iconv/tests/bug16069.phpt]
iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
Test session_decode() function : variation 
[ext/session/tests/session_decode_variation3.phpt]
Test session_encode() function : variation 
[ext/session/tests/session_encode_variation8.phpt]
IPv6 Loopback test [ext/sockets/tests/ipv6loop.phpt]
testing fsockopen() with udp sockets 
[ext/standard/tests/network/fsockopen_variation2.phpt]
htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15) 
[ext/standard/tests/strings/htmlentities02.phpt] (warn: possibly 
braindead libc)
htmlentities() test 4 (setlocale / ja_JP.EUC-JP) 
[ext/standard/tests/strings/htmlentities04.phpt] (warn: possibly 
braindead libc)
htmlentities() test 15 (setlocale / KOI8-R) 
[ext/standard/tests/strings/htmlentities15.phpt] (warn: possibly 
braindead libc)
Bug #40189 (test for truncated deflate, also part of erroneous fix for 
#40189) [ext/zlib/tests/bug_40189_2.phpt]
Test gzcompress() function : basic functionality 
[ext/zlib/tests/gzcompress_basic1.phpt]
zlib.inflate of gzip-encoded stream 
[ext/zlib/tests/zlib_filter_inflate2.phpt]
--
Any hint?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 10:01:29 2024 UTC