diff --git a/ext/xml/tests/set_handler_deprecation_empty_string.phpt b/ext/xml/tests/set_handler_deprecation_empty_string.phpt new file mode 100644 index 00000000000..9325efcc495 --- /dev/null +++ b/ext/xml/tests/set_handler_deprecation_empty_string.phpt @@ -0,0 +1,25 @@ +--TEST-- +Unsetting a handler via an empty string should emit a deprecation +--EXTENSIONS-- +xml +--FILE-- +getMessage(), PHP_EOL; +} + +?> +END +--EXPECTF-- +Deprecated: xml_set_processing_instruction_handler(): Passing non-callable strings is deprecated since 8.4 in %s on line %d +END