Skip to content

PHP8.2 Compatibility for xhgui-collector #492

@luzip665

Description

@luzip665

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions