From: dg at artegic dot de
Operating system: SunsOS 5.9
PHP version: 5.2.1
PHP Bug Type: Reproducible crash
Bug description: libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"
Description:
------------
Script produces error message: "zend_mm_heap corrupted"
Configure Command => './configure' '--disable-all' '--
disable-cgi' '--disable-ipv6' '--enable-static' '--enable-
shared' '--enable-thread-safety' '--enable-mbstring' '--
enable-mbregex' '--with-pcre-regex' '--with-zlib' '--with-
iconv' '--enable-libxml' '--enable-xml' '--with-libxml-dir=/
usr/local/lib' '--with-tidy' '--enable-zend-multibyte' '--
with-curlwrappers' '--with-dom' '--with-curl' '--without-
sqlite' '--without-pdo-sqlite' '--with-mysql=/usr/local/
mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config'
tidy
Extension Version => 2.0 ($Id: tidy.c,v 1.66.2.8.2.21
2007/01/23 19:23:29 nlopess Exp $)
tidy.clean_output => no value => no value
tidy.default_config => no value => no value
Reproduce code:
---------------
<?php
ob_start();
?>
<html>a html document</html>
<?
$html = ob_get_clean();
$config = array(
'indent' => true,
'output-xhtml' => true,
'wrap' => 200);
$tidy = new tidy;
$tidy->parseString($html, $config, 'utf8');
$tidy->cleanRepair();
echo $tidy;
?>
Actual result:
--------------
Sorry - no GDB backtrace on this machine...
--
Edit bug report at http://bugs.php.net/?id=40449&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40449&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40449&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40449&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40449&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40449&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40449&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40449&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40449&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40449&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40449&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40449&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40449&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40449&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40449&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40449&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40449&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40449&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40449&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40449&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40449&r=mysqlcfg