From 2614b9a0c7571737ac9a9ba426c8263ff2eeefd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Fri, 13 Mar 2026 17:09:48 +0100 Subject: [PATCH] Make bson-enum_error resilient to PHP 8.6 interface handler order (#1953) PHP is calling the interface_gets_implemented handlers in a different order --- tests/bson/bson-enum_error-003.phpt | 4 ++-- tests/bson/bson-enum_error-004.phpt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/bson/bson-enum_error-003.phpt b/tests/bson/bson-enum_error-003.phpt index 788868437..e78f766fa 100644 --- a/tests/bson/bson-enum_error-003.phpt +++ b/tests/bson/bson-enum_error-003.phpt @@ -15,5 +15,5 @@ enum MyEnum implements MongoDB\BSON\Persistable ?> ===DONE=== ---EXPECTF-- -Fatal error: Enum class MyEnum cannot implement interface MongoDB\BSON\Persistable in %s on line %d +--EXPECTREGEX-- +Fatal error: Enum class MyEnum cannot implement interface MongoDB\\BSON\\(Persistable|Unserializable) in .+ on line \d+ diff --git a/tests/bson/bson-enum_error-004.phpt b/tests/bson/bson-enum_error-004.phpt index 3136f0060..32a43d568 100644 --- a/tests/bson/bson-enum_error-004.phpt +++ b/tests/bson/bson-enum_error-004.phpt @@ -15,5 +15,5 @@ enum MyBackedEnum: int implements MongoDB\BSON\Persistable ?> ===DONE=== ---EXPECTF-- -Fatal error: Enum class MyBackedEnum cannot implement interface MongoDB\BSON\Persistable in %s on line %d +--EXPECTREGEX-- +Fatal error: Enum class MyBackedEnum cannot implement interface MongoDB\\BSON\\(Persistable|Unserializable) in .+ on line \d+