tideways/php-xhprof-extension

Wrong summary in php8

Opened this issue · 5 comments

I tried extension with php8 and there is a problem in summary it shows 0 values:
xhgui
There is two request to the same page, first request is php8 and second is php7.4

PHP Version 8.0.8
tideways_xhprof
Version | 5.0.4
Clock Source | clock_gettime

'main()' function has no relation to the child, like it was on 7.x 'main()==>'
Clipboard - 25 мая 2022 г , 09_32

it seems this causes wrong numbers (looks like some default numbers)for main() during saving profile

on php7.4 it was
image

And in the end this causes wrong displaying of profiles list and wrong calculation of percentages inside profile view

Having the same issue, any ideas how to fix?

Any insight here? It seems that no changes related to this have happened since 2020, and with php74 becoming EOL... we are running out of options if this doesn't calculate totals properly under php80/81.

Ciao :-)

@stronk7 try pecl install xhprof, it works for me

@stronk7 try pecl install xhprof, it works for me

Yeah, thanks, @hotrush . That's the PECL (https://github.com/longxinH/xhprof , fork of the old/original, recently "revived"). As far as we support both flavours... I just was asking if this is going to be updated to support newer PHP versions or no, just that.

Ciao :-)