tidy memory corruption problem

From: Date: Tue, 11 Dec 2007 15:13:04 +0000
Subject: tidy memory corruption problem
Groups: php.general 
Request: Send a blank email to php-general+get-265687@lists.php.net to get a copy of this message
My first attempt at leaning the tidy suite of functions has ran into a major snag I get this: *** glibc detected *** /usr/sbin/httpd: malloc(): memory corruption: 0x81946e30 whenever the tidy_parse_string() is called. I'm running the latest apache/php/tidy that FC6 has to offer... php-tidy-5.1.6-4.fc6 libtidy-0.99.0-12.20070228.fc6.1 Does the below code work on someone else's FC6 by chance? thanks, -eric wood The code is: <html> <head> <title>PHP Tidy Test</title> <body> <? $xml=<<<EOX <begin> <level1> <level2> Text </level2> </level1> </begin> EOX; ?> <textarea cols='80' rows='10'> <? echo $xml; ?> </textarea> <br/> Becomes... <br/> <textarea cols='80' rows='10'> <? $config = array('indent' => TRUE,
              'input-xml' => TRUE,
              'output-xml' => TRUE,
              'wrap' => 200);
$tidy = tidy_parse_string($xml, $config, 'UTF8'); echo $tidy; ?> </textarea> </body> </html>

« previous php.general (#265687) next »