#24188 [Asn->Csd]: HTML_Page examples broken
| From: | thesaur@php.net | Date: | Sat, 21 Jun 2003 22:14:47 +0000 |
| Subject: | #24188 [Asn->Csd]: HTML_Page examples broken | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-17612@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: Assigned
+Status: Closed
Bug Type: PEAR related
Operating System: Linux
PHP Version: 4.3.2
Assigned To: thesaur
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
Previous Comments:
------------------------------------------------------------------------
[2003-06-15 04:26:46] thesaur@php.net
I guess I was overconfident about the examples and as usual, Murphy's
Law struck home. A bugfix will be released shortly.
------------------------------------------------------------------------
[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