Re: tidy memory corruption problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

On Tue, December 11, 2007 9:13 am, Eric Wood wrote:
> 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>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux