php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46915 metaphone() crashes on utf-8 string "kdxkdx"
Submitted: 2008-12-20 19:07 UTC Modified: 2009-02-18 01:00 UTC
From: qrizly at hotmail dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.2.8 OS: XP
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: qrizly at hotmail dot com
New email:
PHP Version: OS:

 

 [2008-12-20 19:07 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-20 19:37 UTC] 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 21:27 UTC] qrizly at hotmail dot com
another string that gives me trouble in PHP as well: "gpxgpx"
 [2008-12-24 19:37 UTC] felipe@php.net
I can't reproduce it.
 [2008-12-24 22:50 UTC] scottmac@php.net
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.
 [2009-01-01 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".
 [2009-02-10 22:20 UTC] felipe@php.net
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.


 [2009-02-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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 00:01:27 2024 UTC