Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No backtrace? #95

Open
fcojavierdomenech opened this issue Nov 14, 2016 · 0 comments
Open

No backtrace? #95

fcojavierdomenech opened this issue Nov 14, 2016 · 0 comments

Comments

@fcojavierdomenech
Copy link

fcojavierdomenech commented Nov 14, 2016

I was expecting some kind of backtrace like in your examples but I'm only getting the fatal error and where it is. For instance:

<?php

require_once('php_error.php');
\php_error\reportErrors();

class Test
{
    public function A()
    {
        return $this->B();
    }

    public function B()
    {
        return $this->C();
    }

    public function C()
    {
        return $this->D();
    }
}

$test = new Test();
$test->A();

I'm getting:


Call to undefined method Test::D()
39 cgi-bin/scripts/test.php
    }
    /**
     * undocumented function
     *
     * @return void
     */
    public function C()
    {
        return $this->D();
    }
}

While I'd like to see also the backtrace:

14 return $this->C();

9 return $this->B();

24 $test->A();

Am I missing anything?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant