Exception
RuntimeException (code 0) Uncaught exception CalculatorException
Stack trace
(...)/bin/scripts/exceptionChain.php:48
41 class Executor42 {43 public function execute($callable, $arguments)44 {45 try {46 \call_user_func_array($callable, $arguments);47 } catch (\Exception $exception) {48 throw new \RuntimeException(\sprintf('Uncaught exception %s', \get_class($exception)), 0, $exception);49 }50 }51 }52 53 $executor = new Executor();54 55 try {
(...)/bin/scripts/exceptionChain.php:56 Executor->execute()
48 throw new \RuntimeException(\sprintf('Uncaught exception %s', \get_class($exception)), 0, $exception);49 }50 }51 }52 53 $executor = new Executor();54 55 try {56 $executor->execute(array(new Calculator(), 'divide'), array(5, 0));57 } catch (\Exception $exception) {58 $view = new ViewHtml();59 $view->display(new SerializableException($exception));60 exit;61 }62
array(2) {
[0] => object(Calculator) #70 (0) {}
[1] => “divide”
}
array(2) {5, 0}
(...)/bin/errordumper_webserver_root/index.php:51 require()
44 require \implode(\DIRECTORY_SEPARATOR, array(__DIR__, '..', 'scripts', $page . '.php'));45 };46 47 return false;48 }49 50 if (\in_array($page, \array_keys($pages))) {51 return require \implode(\DIRECTORY_SEPARATOR, array(__DIR__, '..', 'scripts', $page . '.php'));52 }53 54 return $app['twig']->render('index.twig', array(55 'pages' => $pages,56 ));57 })58 ->bind('homepage')
“(...)/bin/scripts/exceptionChain.php”
{closure}()
Source code does not exist for this step.
“exceptionChain”
(...)/symfony/http-kernel/HttpKernel.php:144 call_user_func_array()
137 $this->dispatcher->dispatch(KernelEvents::CONTROLLER, $event);138 $controller = $event->getController();139 140 // controller arguments141 $arguments = $this->resolver->getArguments($request, $controller);142 143 // call controller144 $response = call_user_func_array($controller, $arguments);145 146 // view147 if (!$response instanceof Response) {148 $event = new GetResponseForControllerResultEvent($this, $request, $type, $response);149 $this->dispatcher->dispatch(KernelEvents::VIEW, $event);150 151 if ($event->hasResponse()) {
object(Closure) #39 (4) {
$name => “{closure}”
$filename => “(...)/bin/errordumper_webserver_root/index.php”
$startLine => 41
$endLine => 57
}
array(1) {“exceptionChain”}
(...)/symfony/http-kernel/HttpKernel.php:64 Symfony\Component\HttpKernel\HttpKernel->handleRaw()
57 * {@inheritdoc}58 */59 public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)60 {61 $request->headers->set('X-Php-Ob-Level', ob_get_level());62 63 try {64 return $this->handleRaw($request, $type);65 } catch (\Exception $e) {66 if ($e instanceof ConflictingHeadersException) {67 $e = new BadRequestHttpException('The request headers contain conflicting information regarding the origin of this request.', $e);68 }69 if (false === $catch) {70 $this->finishRequest($request, $type);71
object(Symfony\Component\HttpFoundation\Request) #45 (28) {
protected static $trustedProxies => array(0) {}
protected static $trustedHostPatterns => array(0) {}
protected static $trustedHosts => array(0) {}
protected static $trustedHeaders =>
array(5) {
[forwarded] => “FORWARDED”
[client_ip] => “X_FORWARDED_FOR”
[client_host] => “X_FORWARDED_HOST”
[client_proto] => “X_FORWARDED_PROTO”
[client_port] => “X_FORWARDED_PORT”
}
protected static $httpMethodParameterOverride => false
public $attributes =>
object(Symfony\Component\HttpFoundation\ParameterBag) #48 (1) {
protected $parameters =>
array(4) {
[_controller] =>
object(Closure) #39 (4) {
$name => “{closure}”
$filename => “(...)/bin/errordumper_webserver_root/index.php”
$startLine => 41
$endLine => 57
}
[page] => “exceptionChain”
[_route] => “homepage”
[_route_params] =>
array(1) {
[page] => “exceptionChain”
}
}
}
public $request =>
object(Symfony\Component\HttpFoundation\ParameterBag) #46 (1) {
protected $parameters => array(0) {}
}
public $query =>
object(Symfony\Component\HttpFoundation\ParameterBag) #47 (1) {
protected $parameters => array(0) {}
}
public $server =>
object(Symfony\Component\HttpFoundation\ServerBag) #51 (1) {
protected $parameters =>
array(17) {
[DOCUMENT_ROOT] => “(...)/bin/errordumper_webserver_root”
[REMOTE_ADDR] => “::1”
[REMOTE_PORT] => “65320”
[SERVER_SOFTWARE] => “PHP 7.1.22 Development Server”
[SERVER_PROTOCOL] => “HTTP/1.1”
[SERVER_NAME] => “localhost”
[SERVER_PORT] => “8001”
[REQUEST_URI] => “/exceptionChain”
[REQUEST_METHOD] => “GET”
[SCRIPT_NAME] => “/index.php”
[SCRIPT_FILENAME] => “(...)/bin/errordumper_webserver_root/index.php”
[PATH_INFO] => “/exceptionChain”
[PHP_SELF] => “/index.php/exceptionChain”
[HTTP_HOST] => “example.awesomite.local”
[HTTP_USER_AGENT] => “GuzzleHttp/6.3.3 curl/7.54.0 PHP/7.1.22”
[REQUEST_TIME_FLOAT] => 1538411149.592781
[REQUEST_TIME] => 1538411149
}
}
public $files =>
object(Symfony\Component\HttpFoundation\FileBag) #50 (2) {
private static $fileKeys =>
array(5) {
[0] => “error”
[1] => “name”
[2] => “size”
[3] => “tmp_name”
[4] => “type”
}
protected $parameters => array(0) {}
}
public $cookies =>
object(Symfony\Component\HttpFoundation\ParameterBag) #49 (1) {
protected $parameters => array(0) {}
}
public $headers =>
object(Symfony\Component\HttpFoundation\HeaderBag) #52 (2) {
protected $headers =>
array(3) {
[host] => array(1) {“example.awesomite.local”}
[user-agent] => array(1) {“GuzzleHttp/6.3.3 curl/7.54.0 PHP/7.1.22”}
[x-php-ob-level] => array(1) {1}
}
protected $cacheControl => array(0) {}
}
protected $content => NULL
protected $languages => NULL
protected $charsets => NULL
protected $encodings => NULL
protected $acceptableContentTypes => NULL
protected $pathInfo => “/exceptionChain”
protected $requestUri => “/exceptionChain”
protected $baseUrl => “”
(...)
}
(...)/src/Silex/Application.php:586 Symfony\Component\HttpKernel\HttpKernel->handle()
579 580 $current = HttpKernelInterface::SUB_REQUEST === $type ? $this['request'] : $this['request_error'];581 582 $this['request'] = $request;583 584 $this->flush();585 586 $response = $this['kernel']->handle($request, $type, $catch);587 588 $this['request'] = $current;589 590 return $response;591 }592 593 /**
object(Symfony\Component\HttpFoundation\Request) #45 (28) {
protected static $trustedProxies => array(0) {}
protected static $trustedHostPatterns => array(0) {}
protected static $trustedHosts => array(0) {}
protected static $trustedHeaders =>
array(5) {
[forwarded] => “FORWARDED”
[client_ip] => “X_FORWARDED_FOR”
[client_host] => “X_FORWARDED_HOST”
[client_proto] => “X_FORWARDED_PROTO”
[client_port] => “X_FORWARDED_PORT”
}
protected static $httpMethodParameterOverride => false
public $attributes =>
object(Symfony\Component\HttpFoundation\ParameterBag) #48 (1) {
protected $parameters =>
array(4) {
[_controller] =>
object(Closure) #39 (4) {
$name => “{closure}”
$filename => “(...)/bin/errordumper_webserver_root/index.php”
$startLine => 41
$endLine => 57
}
[page] => “exceptionChain”
[_route] => “homepage”
[_route_params] =>
array(1) {
[page] => “exceptionChain”
}
}
}
public $request =>
object(Symfony\Component\HttpFoundation\ParameterBag) #46 (1) {
protected $parameters => array(0) {}
}
public $query =>
object(Symfony\Component\HttpFoundation\ParameterBag) #47 (1) {
protected $parameters => array(0) {}
}
public $server =>
object(Symfony\Component\HttpFoundation\ServerBag) #51 (1) {
protected $parameters =>
array(17) {
[DOCUMENT_ROOT] => “(...)/bin/errordumper_webserver_root”
[REMOTE_ADDR] => “::1”
[REMOTE_PORT] => “65320”
[SERVER_SOFTWARE] => “PHP 7.1.22 Development Server”
[SERVER_PROTOCOL] => “HTTP/1.1”
[SERVER_NAME] => “localhost”
[SERVER_PORT] => “8001”
[REQUEST_URI] => “/exceptionChain”
[REQUEST_METHOD] => “GET”
[SCRIPT_NAME] => “/index.php”
[SCRIPT_FILENAME] => “(...)/bin/errordumper_webserver_root/index.php”
[PATH_INFO] => “/exceptionChain”
[PHP_SELF] => “/index.php/exceptionChain”
[HTTP_HOST] => “example.awesomite.local”
[HTTP_USER_AGENT] => “GuzzleHttp/6.3.3 curl/7.54.0 PHP/7.1.22”
[REQUEST_TIME_FLOAT] => 1538411149.592781
[REQUEST_TIME] => 1538411149
}
}
public $files =>
object(Symfony\Component\HttpFoundation\FileBag) #50 (2) {
private static $fileKeys =>
array(5) {
[0] => “error”
[1] => “name”
[2] => “size”
[3] => “tmp_name”
[4] => “type”
}
protected $parameters => array(0) {}
}
public $cookies =>
object(Symfony\Component\HttpFoundation\ParameterBag) #49 (1) {
protected $parameters => array(0) {}
}
public $headers =>
object(Symfony\Component\HttpFoundation\HeaderBag) #52 (2) {
protected $headers =>
array(3) {
[host] => array(1) {“example.awesomite.local”}
[user-agent] => array(1) {“GuzzleHttp/6.3.3 curl/7.54.0 PHP/7.1.22”}
[x-php-ob-level] => array(1) {1}
}
protected $cacheControl => array(0) {}
}
protected $content => NULL
protected $languages => NULL
protected $charsets => NULL
protected $encodings => NULL
protected $acceptableContentTypes => NULL
protected $pathInfo => “/exceptionChain”
protected $requestUri => “/exceptionChain”
protected $baseUrl => “”
(...)
}
true
(...)/src/Silex/Application.php:563 Silex\Application->handle()
556 */557 public function run(Request $request = null)558 {559 if (null === $request) {560 $request = Request::createFromGlobals();561 }562 563 $response = $this->handle($request);564 $response->send();565 $this->terminate($request, $response);566 }567 568 /**569 * {@inheritdoc}570 *
object(Symfony\Component\HttpFoundation\Request) #45 (28) {
protected static $trustedProxies => array(0) {}
protected static $trustedHostPatterns => array(0) {}
protected static $trustedHosts => array(0) {}
protected static $trustedHeaders =>
array(5) {
[forwarded] => “FORWARDED”
[client_ip] => “X_FORWARDED_FOR”
[client_host] => “X_FORWARDED_HOST”
[client_proto] => “X_FORWARDED_PROTO”
[client_port] => “X_FORWARDED_PORT”
}
protected static $httpMethodParameterOverride => false
public $attributes =>
object(Symfony\Component\HttpFoundation\ParameterBag) #48 (1) {
protected $parameters =>
array(4) {
[_controller] =>
object(Closure) #39 (4) {
$name => “{closure}”
$filename => “(...)/bin/errordumper_webserver_root/index.php”
$startLine => 41
$endLine => 57
}
[page] => “exceptionChain”
[_route] => “homepage”
[_route_params] =>
array(1) {
[page] => “exceptionChain”
}
}
}
public $request =>
object(Symfony\Component\HttpFoundation\ParameterBag) #46 (1) {
protected $parameters => array(0) {}
}
public $query =>
object(Symfony\Component\HttpFoundation\ParameterBag) #47 (1) {
protected $parameters => array(0) {}
}
public $server =>
object(Symfony\Component\HttpFoundation\ServerBag) #51 (1) {
protected $parameters =>
array(17) {
[DOCUMENT_ROOT] => “(...)/bin/errordumper_webserver_root”
[REMOTE_ADDR] => “::1”
[REMOTE_PORT] => “65320”
[SERVER_SOFTWARE] => “PHP 7.1.22 Development Server”
[SERVER_PROTOCOL] => “HTTP/1.1”
[SERVER_NAME] => “localhost”
[SERVER_PORT] => “8001”
[REQUEST_URI] => “/exceptionChain”
[REQUEST_METHOD] => “GET”
[SCRIPT_NAME] => “/index.php”
[SCRIPT_FILENAME] => “(...)/bin/errordumper_webserver_root/index.php”
[PATH_INFO] => “/exceptionChain”
[PHP_SELF] => “/index.php/exceptionChain”
[HTTP_HOST] => “example.awesomite.local”
[HTTP_USER_AGENT] => “GuzzleHttp/6.3.3 curl/7.54.0 PHP/7.1.22”
[REQUEST_TIME_FLOAT] => 1538411149.592781
[REQUEST_TIME] => 1538411149
}
}
public $files =>
object(Symfony\Component\HttpFoundation\FileBag) #50 (2) {
private static $fileKeys =>
array(5) {
[0] => “error”
[1] => “name”
[2] => “size”
[3] => “tmp_name”
[4] => “type”
}
protected $parameters => array(0) {}
}
public $cookies =>
object(Symfony\Component\HttpFoundation\ParameterBag) #49 (1) {
protected $parameters => array(0) {}
}
public $headers =>
object(Symfony\Component\HttpFoundation\HeaderBag) #52 (2) {
protected $headers =>
array(3) {
[host] => array(1) {“example.awesomite.local”}
[user-agent] => array(1) {“GuzzleHttp/6.3.3 curl/7.54.0 PHP/7.1.22”}
[x-php-ob-level] => array(1) {1}
}
protected $cacheControl => array(0) {}
}
protected $content => NULL
protected $languages => NULL
protected $charsets => NULL
protected $encodings => NULL
protected $acceptableContentTypes => NULL
protected $pathInfo => “/exceptionChain”
protected $requestUri => “/exceptionChain”
protected $baseUrl => “”
(...)
}
undefined
(...)/bin/errordumper_webserver_root/index.php:61 Silex\Application->run()
52 }53 54 return $app['twig']->render('index.twig', array(55 'pages' => $pages,56 ));57 })58 ->bind('homepage')59 ->value('page', 'index');60 61 $app->run();62 63 if ($onExit) {64 \call_user_func($onExit);65 }66