diff --git a/test/compliance/cases/stdlib/number_format_type_error.phpt b/test/compliance/cases/stdlib/number_format_type_error.phpt new file mode 100644 index 00000000000..45d40341107 --- /dev/null +++ b/test/compliance/cases/stdlib/number_format_type_error.phpt @@ -0,0 +1,11 @@ +--TEST-- +stdlib number_format() — array $num operand TypeError (#4163, ext/standard/number_format.c) +--FILE-- +getMessage(), "\n"; +} +--EXPECT-- +number_format(): Argument #1 ($num) must be of type float, array given diff --git a/test/compliance/cases/stdlib/number_format_type_error_jit.phpt b/test/compliance/cases/stdlib/number_format_type_error_jit.phpt new file mode 100644 index 00000000000..3434bb3c074 --- /dev/null +++ b/test/compliance/cases/stdlib/number_format_type_error_jit.phpt @@ -0,0 +1,11 @@ +--TEST-- +stdlib number_format() JIT — array $num operand TypeError (#4163, ext/standard/number_format.c) +--FILE-- +getMessage(), "\n"; +} +--EXPECT-- +number_format(): Argument #1 ($num) must be of type float, array given