Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions test/compliance/cases/stdlib/number_format_type_error.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--TEST--
stdlib number_format() — array $num operand TypeError (#4163, ext/standard/number_format.c)
--FILE--
<?php
try {
number_format(['x']);
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
--EXPECT--
number_format(): Argument #1 ($num) must be of type float, array given
11 changes: 11 additions & 0 deletions test/compliance/cases/stdlib/number_format_type_error_jit.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--TEST--
stdlib number_format() JIT — array $num operand TypeError (#4163, ext/standard/number_format.c)
--FILE--
<?php
try {
number_format(['x']);
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
--EXPECT--
number_format(): Argument #1 ($num) must be of type float, array given