Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > tidy memory corruption problem
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 1st November 06:07
eric
External User
 
Posts: 1
Default tidy memory corruption problem



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>
  Reply With Quote


 


2 1st November 06:08
ceo
External User
 
Posts: 1
Default tidy memory corruption problem



Check for similar bugs here:
http://bugs.php.net

You may find that you have to upgrade something...

Just guessing, really, but PHP 5.1.x should probably be upgraded to
5.2.x anyway.

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?
  Reply With Quote
Reply


Thread Tools
Display Modes




666