- var_dump: documentation ( source)
- debug_backtrace: documentation ( source)
- error_reporting: documentation ( source)
- header: documentation ( source)
<?php
error_reporting(E_ALL | E_STRICT);
header('Content-type: text/plain; charset=utf-8');
function a($a) {
throw new Exception2('EXCEPTION MESSAGE');
}
function b($b) {
a($b);
}
try {
b('THIS PARAMETER SHOULD SHOW UP');
} catch(Exception $e) {
var_dump($e);
}
class Exception2 extends Exception
{
public function __construct()
{
$args = func_get_args();
call_user_func_array(array($this, 'parent::__construct'), $args);
var_dump(debug_backtrace());
}
}