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

Make sure xhprof_error doesn't get multiple definition: "Cannot redeclare xhprof_error() (previously declared" #59

Merged
merged 1 commit into from
Jun 15, 2021

Conversation

rfay
Copy link

@rfay rfay commented Jun 14, 2021

I kept seeing errors like this at the bottom of the screen when using xhprof:

Fatal error: Cannot redeclare xhprof_error() (previously declared in /var/www/html/web/xhprof/xhprof_lib/utils/xhprof_lib.php:22) in /var/www/xhprof/xhprof_lib/utils/xhprof_lib.php on line 22

I didn't study why or where it occurs (PHP 7.4) but here's a patch to make sure it doesn't get double-defined.

@longxinH longxinH merged commit e6117af into longxinH:master Jun 15, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants