note 43106 rejected from ref.tidy by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 09 Jun 2004 21:46:01 +0000 |
| Subject: | note 43106 rejected from ref.tidy by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-70600@lists.php.net to get a copy of this message | ||
Note Submitter: vh1_sauce@hotmail.com
----
Hey, I can't seem to get the tidy extension working properly
I just downloaded PHP5 RC3, and uncommented the extension line in my config, then just copied and
pasted a script from php.net to see if it'd work, and it gives me this error:
Fatal error: Trying to clone an uncloneable object of class tidy
here is the script:
<?php
ob_start();
?>
<html>
<head>
<title>test</title>
</head>
<body>
<p>error<br>another line</i>
</body>
</html>
<?php
$buffer = ob_get_clean();
$config = array('indent' => TRUE,
'output-xhtml' => TRUE,
'wrap', 200);
$tidy = tidy_parse_string($buffer, $config, 'UTF8');
$tidy->cleanRepair();
echo $tidy;
?>
Windows XP, PHP5 RC3