#44242 [Opn->Csd]: metaphone('CMXFXM') crashes PHP

From: Date: Mon, 25 Feb 2008 22:43:14 +0000
Subject: #44242 [Opn->Csd]: metaphone('CMXFXM') crashes PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-122701@lists.php.net to get a copy of this message
ID: 44242 Updated by: felipe@php.net Reported By: nicolas at audiofanzine dot com -Status: Open +Status: Closed Bug Type: Reproducible crash Operating System: Linux & Windows PHP Version: 5.2.5 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-02-25 16:05:23] nicolas at audiofanzine dot com Description: ------------ The following code results in a PHP crash with a "zend_mm_heap corrupted" message, either on an UTF-8 environement or ISO-8859-1, with Linux or Windows. Reproduce code: --------------- <?php echo metaphone('CMXFXM'); ?> Actual result: -------------- KMKSFKSM[Mon Feb 25 17:02:41 2008] Script: 'test.php' --------------------------------------- /usr/local/src/php/Zend/zend_variables.h(35) : Block 0xb79dcfb4 status: /usr/local/src/php/Zend/zend_variables.c(36) : Actual location (location was relayed) Beginning: OK (allocated on /usr/local/src/php/ext/standard/metaphone.c:435, 8 bytes) Start: OK End: Overflown (magic=0x00000000 instead of 0xC5FC605D) 1 byte(s) overflown --------------------------------------- [Mon Feb 25 17:02:41 2008] Script: 'test.php' /usr/local/src/php/ext/standard/metaphone.c(435) : Freeing 0xB79DCFB4 (8 bytes), script=test.php === Total 1 memory leaks detected === ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44242&edit=1

« previous php.bugs (#122701) next »