#24188 [NEW]: HTML_Page examples broken
| From: | rocha at i-node dot com dot br | Date: | Sun, 15 Jun 2003 01:03:37 +0000 |
| Subject: | #24188 [NEW]: HTML_Page examples broken | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-17472@lists.php.net to get a copy of this message | ||
From: rocha at i-node dot com dot br
Operating system: Linux
PHP version: 4.3.2
PHP Bug Type: PEAR related
Bug description: HTML_Page examples broken
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 bug report at http://bugs.php.net/?id=24188&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24188&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24188&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24188&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24188&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24188&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24188&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24188&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24188&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24188&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24188&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24188&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24188&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24188&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24188&r=gnused