#46915 [Opn->Fbk]: metaphone() crashes on utf-8 string "kdxkdx"
ID: 46915
Updated by: scottmac@php.net
Reported By: qrizly at hotmail dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: XP
PHP Version: 5.2.8
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
A backtrace would help us since we can't seem to reproduce this on
Linux or OS X.
Previous Comments:
------------------------------------------------------------------------
[2008-12-24 19:37:38] felipe@php.net
I can't reproduce it.
------------------------------------------------------------------------
[2008-12-20 21:27:46] qrizly at hotmail dot com
another string that gives me trouble in PHP as well: "gpxgpx"
------------------------------------------------------------------------
[2008-12-20 19:37:49] qrizly at hotmail dot com
and tested in PHP 5.2.8. Problem still occurs.
Small question along the lines, is this true:
5.3CVS-2008-12-20 (snapshot) < php-5.2.8
------------------------------------------------------------------------
[2008-12-20 19:07:58] qrizly at hotmail dot com
Description:
------------
the string "kdxkdx" encoded in utf-8 or ISO-8859-1 craches in PHP 5.1
and tested in latest snapshot: php-5.3-win32-VC6-x86
Reproduce code:
---------------
$txt = iconv("ISO-8859-1", "UTF-8", "kdxkdx");
echo metaphone($txt);
Expected result:
----------------
echo: KTKSKTKS
Actual result:
--------------
PHP CGI crash
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46915&edit=1
Thread (8 messages)