PHP Exceptions and the Stacktrace

elePHPant

PHP Stacktrace

Stacktrace and Opcache

declare(strict_types=1);class Foo {    public function bar(int $foo) {         return static::baz($foo);    }    public static function baz($foo = null) {         $foo = true;         throw new Exception('blub');    }}$foo = new Foo;$foo->bar((int)'12345');

Software Engineer, Algorithms and Data Structures, Machine Learning, Open Source Contributor, Hobby Photographer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store