]> granicus.if.org Git - php/commit
Constrain number parameter of numfmt_format to int|float
authorChristoph M. Becker <cmbecker69@gmx.de>
Sun, 16 Feb 2020 15:41:43 +0000 (16:41 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 16 Feb 2020 15:48:35 +0000 (16:48 +0100)
commit6ee6097688a8c64e0e0ba166d48b16a93bf107a2
tree9157214fbb184a14da756c195897ccf40e441d85
parentd9b80efb57ad46a5ba80581d823957471bfe4db0
Constrain number parameter of numfmt_format to int|float

This is inline with similar changes to the math functions.  Especially,
array to number conversion makes no sense here, and is likely to hide
a programming error.

To make that feasible, we introduce the `n` specifier for classic ZPP
so we can stick with `zend_parse_method_parameters()`.

We also remove a test case, which has been degenerated to a ZPP test.
Zend/zend_API.c
Zend/zend_API.h
docs/parameter-parsing-api.md
ext/intl/formatter/formatter.stub.php
ext/intl/formatter/formatter_arginfo.h
ext/intl/formatter/formatter_format.c
ext/intl/tests/bug48227.phpt
ext/intl/tests/bug53735.phpt
ext/intl/tests/bug79212.phpt [deleted file]