From: nicolas at audiofanzine dot com Operating system: Linux & Windows PHP version: 5.2.5 PHP Bug Type: Reproducible crash Bug description: metaphone('CMXFXM') crashes PHP
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 bug report at http://bugs.php.net/?id=44242&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44242&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44242&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44242&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44242&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44242&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44242&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44242&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44242&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44242&r=support Expected behavior: http://bugs.php.net/fix.php?id=44242&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44242&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44242&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44242&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44242&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44242&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44242&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44242&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44242&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44242&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44242&r=mysqlcfg