[TYPO3-ect] lib div feature request - debug for php5
Elmar Hinz
elmar07 at googlemail.com
Wed Sep 26 01:59:36 CEST 2007
Steve Ryan wrote:
> Hi Elmar,
> any chance to include the following function in tx_lib_object. Since
> php5, using debug on an array containing a tx_lib_object subclass causes
> and exception because it cannot be converted to string.
>
> function __toString() {
> ob_start();
> $this->dump();
> $content=ob_get_contents();
> ob_end_clean();
> return $content;
> }
>
> thanks
>
> Steve Ryan
function __toString() {
ob_start();
$this->dump();
return ob_get_clean();
}
Cool
Elmar
More information about the TYPO3-team-extension-coordination
mailing list