note 33037 deleted from function.ob-start by sniper
| From: | sniper@php.net | Date: | Mon, 03 Nov 2003 15:36:21 +0000 |
| Subject: | note 33037 deleted from function.ob-start by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59690@lists.php.net to get a copy of this message | ||
Note Submitter: sandhawk at spies dot com
----
Using php 4.2.2 I found that this dosen't work:
<?php
class CPage
{
var $header;
function CPage()
{
ob_start(array(&$this, "output"))
}
function output($pOutput)
{
$string = $this->header . $pOutput;
return $string;
}
}
$page = new CPage();
?>
however if you replace $this->header for $page->header it will work fine.