note 43106 added to ref.tidy

From: Date: Wed, 09 Jun 2004 21:07:28 +0000
Subject: note 43106 added to ref.tidy
Groups: php.notes 
Request: Send a blank email to php-notes+get-70549@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/ref.tidy.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43106 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43106&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43106&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70549) next »