perftools / xhgui

Web interface for XHProf profiling data can store data in MongoDB or PDO database
1.65k stars 341 forks source link

PHP8.2 Compatibility for xhgui-collector #492

Closed luzip665 closed 7 months ago

luzip665 commented 1 year ago

Hi.

in a PHP 8.2 environment we get the following message

21.04.2023 - 08:40:39:

    Host:          7e06fbee8845
    Pid:           2879
    User-ID:       1
    Message:       Use of "self" in callables is deprecated
    Method:        array_map(&array(2), &array(5)) @ /var/www/xhgui/vendor/alcaeus/mongo-php-adapter/lib/Alcaeus/MongoDbAdapter/TypeConverter.php:180 in // Line 
    Trace:         array_map(&array(2), &array(5)) @ /var/www/xhgui/vendor/alcaeus/mongo-php-adapter/lib/Alcaeus/MongoDbAdapter/TypeConverter.php:180
                   <- Alcaeus\MongoDbAdapter\TypeConverter::convertBSONObjectToLegacy(&object) @ /var/www/xhgui/vendor/alcaeus/mongo-php-adapter/lib/Alcaeus/MongoDbAdapter/TypeConverter.php:79
                   <- Alcaeus\MongoDbAdapter\TypeConverter::toLegacy(&object)
                   <- array_map(&array(2), &array(243)) @ /var/www/xhgui/vendor/alcaeus/mongo-php-adapter/lib/Alcaeus/MongoDbAdapter/TypeConverter.php:180
                   <- Alcaeus\MongoDbAdapter\TypeConverter::convertBSONObjectToLegacy(&object) @ /var/www/xhgui/vendor/alcaeus/mongo-php-adapter/lib/Alcaeus/MongoDbAdapter/TypeConverter.php:79
                   <- Alcaeus\MongoDbAdapter\TypeConverter::toLegacy(&object)
                   <- array_map(&array(2), &array(3)) @ /var/www/xhgui/vendor/alcaeus/mongo-php-adapter/lib/Alcaeus/MongoDbAdapter/TypeConverter.php:180
                   <- Alcaeus\MongoDbAdapter\TypeConverter::convertBSONObjectToLegacy(&object) @ /var/www/xhgui/vendor/alcaeus/mongo-php-adapter/lib/Alcaeus/MongoDbAdapter/TypeConverter.php:79
                   <- Alcaeus\MongoDbAdapter\TypeConverter::toLegacy(&object) @ /var/www/xhgui/vendor/alcaeus/mongo-php-adapter/lib/Mongo/MongoCollection.php:568
                   <- MongoCollection->findOne() @ /var/www/xhgui/vendor/perftools/xhgui-collector/src/Xhgui/Saver.php:46
                   <- Xhgui_Saver::factory(&array(14)) @ /var/www/xhgui/vendor/perftools/xhgui-collector/external/header.php:208
                   <- {closure}()

As far as I could determine MongoDBAdapter is discontinued and xhgui-collector is archived.

So, is there a plan for PHP 8.2? Thank you very much!

glensc commented 1 year ago

there's no xhgui-collector in latest version:

start by making reproducible bug report!