#44775 [NEW]: tidy::isHtml() method not defined

From: Date: Fri, 18 Apr 2008 14:05:50 +0000
Subject: #44775 [NEW]: tidy::isHtml() method not defined
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-124361@lists.php.net to get a copy of this message
From: nick at carbidefinger dot net Operating system: Linux PHP version: 5.2.5 PHP Bug Type: Unknown/Other Function Bug description: tidy::isHtml() method not defined Description: ------------ This function is no longer defined, running it results in: Call to undefined method tidy::isHtml() Seeing as tidy::isXhtml() is not implemented yet and always returns false - i'm a bit stuck! Reproduce code: --------------- $response = $this->getResponse(); $tidycf = array( 'indent' => true, 'output-xhtml' => true, 'char-encoding' => 'utf8', 'wrap' => 200); // Tidy if (!$response->isException()) { $tidy = new tidy; $tidy->parseString($response, $tidycf, 'utf8'); if ($tidy->isHtml()) { $tidy->cleanRepair(); $this->getResponse()->clearBody(); echo $tidy; } else { $this->getResponse()->appendBody("This Page Was Not Cleaned By Tidy\n"); } } } Expected result: ---------------- Anything that isnt HTML being passed from the $reponse object should have a string appended to it, any HTML should be cleaned by the tidy library. Actual result: -------------- Fatal error: Call to undefined method tidy::isHtml() -- Edit bug report at http://bugs.php.net/?id=44775&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44775&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44775&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44775&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44775&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44775&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44775&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44775&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44775&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44775&r=support Expected behavior: http://bugs.php.net/fix.php?id=44775&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44775&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44775&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44775&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44775&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44775&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44775&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44775&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44775&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44775&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44775&r=mysqlcfg

« previous php.bugs (#124361) next »