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

Exception is not thrown from the source file. #99

Closed
EyelynSu opened this issue Aug 14, 2019 · 1 comment
Closed

Exception is not thrown from the source file. #99

EyelynSu opened this issue Aug 14, 2019 · 1 comment
Assignees
Labels
bug Something isn't working v0.2.x For 0.2.x version( via composer) wontfix This will not be worked on

Comments

@EyelynSu
Copy link
Collaborator

[env]
pinpoint-c-agent: dev-2

[step]

  1. Moniter a function which will throw a error or exception:
    TestError.php:
class TestError
{
...
    static function throwException()
    {
        $num = "hello world!";
        throw new \Exception("throw some thing");
        return $num;
    }
...
}

[result]
Exception thrown in Proxied_TestError.php.

Fatal error: Uncaught Exception: throw some thing in /home/suwei/apps/aop/pinpoint-c-agent/PHP/pinpoint_php_example/Cache/app/Proxied_TestError.php:14 Stack trace: #0 /home/suwei/apps/aop/pinpoint-c-agent/PHP/pinpoint_php_example/Cache/app/TestError.php(15): app\Proxied_TestError::throwException() #1 /home/suwei/apps/aop/pinpoint-c-agent/PHP/pinpoint_php_example/app/index.php(180): app\TestError::throwException() #2 {main} thrown in /home/suwei/apps/aop/pinpoint-c-agent/PHP/pinpoint_php_example/Cache/app/Proxied_TestError.php on line 14
@EyelynSu EyelynSu added the bug Something isn't working label Aug 14, 2019
@eeliu eeliu added the v0.2.x For 0.2.x version( via composer) label Aug 14, 2019
@eeliu
Copy link
Collaborator

eeliu commented Aug 15, 2019

@EyelynSu

The AOP library wrapped the class with a new class.
We are trying to fix this in next release.

@eeliu eeliu added the wontfix This will not be worked on label Aug 20, 2021
@eeliu eeliu closed this as completed Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v0.2.x For 0.2.x version( via composer) wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants