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

Error when monitor Mysqli::poll. #102

Closed
EyelynSu opened this issue Aug 14, 2019 · 2 comments
Closed

Error when monitor Mysqli::poll. #102

EyelynSu opened this issue Aug 14, 2019 · 2 comments
Assignees

Comments

@EyelynSu
Copy link
Collaborator

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

[step]

  1. Monitor Mysqli::poll.

[result]

Warning: Declaration of app\Foo\mysqli::poll(array &$read, array &$write, array &$error, $sec, $usec = NULL) should be compatible with mysqli::poll(?array &$read, ?array &$write, ?array &$error, $sec, $usec = NULL)
@EyelynSu EyelynSu added bug Something isn't working v0.2.x For 0.2.x version( via composer) labels Aug 14, 2019
@eeliu
Copy link
Collaborator

eeliu commented Aug 19, 2019

Reason

The AOP library vis reflection for built-in, while this API was very special.
https://www.php.net/manual/en/mysqli.poll.php

If you want to trace it, a better way is wapper the mysqli::poll or replace it with mysqli_poll, they are equal.

@eeliu eeliu closed this as completed Aug 19, 2019
@eeliu eeliu reopened this Aug 19, 2019
@eeliu eeliu added the Known problem We knew this problem and was trying to find solution. label Feb 14, 2020
@eeliu eeliu closed this as completed Feb 14, 2020
@eeliu
Copy link
Collaborator

eeliu commented Nov 24, 2020

Check the https://github.com/pinpoint-apm/pinpoint-php-aop/tree/v2.0.0-release.
Example, goto https://github.com/pinpoint-apm/pinpoint-c-agent/tree/Release-v4.0.0/plugins/PHP/Plugins/Sys

@eeliu eeliu removed Known problem We knew this problem and was trying to find solution. bug Something isn't working v0.2.x For 0.2.x version( via composer) labels Nov 24, 2020
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

2 participants