#24188 [Opn]: HTML_Page examples broken

From: Date: Sun, 15 Jun 2003 09:26:46 +0000
Subject: #24188 [Opn]: HTML_Page examples broken
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-17480@lists.php.net to get a copy of this message
ID: 24188 Updated by: thesaur@php.net Reported By: rocha at i-node dot com dot br Status: Open Bug Type: PEAR related Operating System: Linux PHP Version: 4.3.2 -Assigned To: +Assigned To: thesaur New Comment: I guess I was overconfident about the examples and as usual, Murphy's Law struck home. A bugfix will be released shortly. Previous Comments: ------------------------------------------------------------------------ [2003-06-14 20:03:37] rocha at i-node dot com dot br Description: ------------ Looks like the new pass by reference on the addBodyContent has broken the examples. This script dont work: <?php require_once('HTML/Page.php'); $p = new HTML_Page(); $p->addBodyContent("Teste"); $p->display(); ?> But this one does: <?php require_once('HTML/Page.php'); $p = new HTML_Page(); $body = "Teste"; $p->addBodyContent($body); $p->display(); ?> Another problem, after fix the above in the example file Page_Complex.php, addMetaData() doesnt exists, it is setMetaData rigth? Even fixing that I got the page, but with errors: Notice: Error: "STRICT" is an unsupported or illegal document type. in /usr/lib/php/PEAR.php on line 744 Object Regards S.Rocha ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24188&edit=1

« previous php.pear.dev (#17480) next »