Current:
<?php
function timestamp( $name )
{
if ( !isset( $this->Timestamps[$name] ) ) {
eZDebug::writeError( "...", '...::timestamp' );
return false;
}
return $this->Timestamps[$name];
}
?>
That would make almost all components depend on eZDebug, and that's
something we want to avoid too.
New:
<?php
class ezcBase {
function debug() { }
}
set_error_handler(array('ezcBase', 'debug'));
trigger_error( "[template] File not found", E_USER_ERROR );
?>