Hosting Skills A.s.b.l. Hosting Skills a.s.b.l.

If you don't see the test messages and you have FirePHP installed and enabled inside Firebug then please check that the Net panel is enabled.

The following code is used to generate the demo:

 FB::group('HSFirePHP!::LOG', array('Color' => '#0000FF'));
FB::log('Plain Message');
FB::info('Info Message');
FB::warn('Warn Message');
FB::error('Error Message');
FB::log('Message','Optional Label');
FB::groupEnd();

You will see 5 messages (log, info, warn, error, log with optional label):

The following code is used to generate the demo:

FB::group('HSFirePHP!::ERROR', array('Color' => '#0000FF'));
trigger_error('', E_ERROR);
$E_NOTICE++;
trigger_error('E_USER_ERROR', E_USER_ERROR);
trigger_error('E_USER_WARNING', E_USER_WARNING);
trigger_error('E_USER_NOTICE', E_USER_NOTICE);
if (version_compare(phpversion(), '7.0.0', '<')) {
HSFirePHP::E_STRICT();
}
(string) new HSFirePHP();
if (version_compare(phpversion(), '7.0.0', '<')) {
split(':', '');
} else {
HSFirePHP::E_STRICT();
}
trigger_error('E_USER_DEPRECATED', E_USER_DEPRECATED);
FB::groupEnd();

where the class HSFirePHP is defined as:

class HSFirePHP {
public function E_STRICT() {
}
}

You will see 9 errors (E_WARNING, E_NOTICE, E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE, E_STRICT*, E_RECOVERABLE_ERROR, E_DEPRECATED*, E_USER_DEPRECATED):



* When using php 7 or newer E_STRICT: Non-static method HSFirePHP::E_STRICT() should not be called statically will be shown as E_DEPRECATED: Non-static method HSFirePHP::E_STRICT() should not be called statically and E_DEPRECATED: Function split() is deprecated will not be shown at all.

Execution will stop after the exception handler is called. You can test this here.
Warning: You will no longer be able to render the page this tag is used in.

The following code is used to generate the demo:

FB::group('HSFirePHP!::EXCEPTION', array('Color' => '#0000FF'));
throw new Exception('Uncaught Exception');
FB::groupEnd();

You will see 1 uncaught exception:

The following code is used to generate the demo:

FB::group('HSFirePHP!::ASSERTION', array('Color' => '#0000FF'));
assert('2 < 1');
FB::groupEnd();

You will see 1 assertion (2 < 1) with result FALSE:

­