summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-02-16 16:41:43 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-02-16 16:48:35 +0100
commit6ee6097688a8c64e0e0ba166d48b16a93bf107a2 (patch)
tree9157214fbb184a14da756c195897ccf40e441d85 /docs
parentd9b80efb57ad46a5ba80581d823957471bfe4db0 (diff)
downloadphp-git-6ee6097688a8c64e0e0ba166d48b16a93bf107a2.tar.gz
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/parameter-parsing-api.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/parameter-parsing-api.md b/docs/parameter-parsing-api.md
index e038a20dee..6bf035673b 100644
--- a/docs/parameter-parsing-api.md
+++ b/docs/parameter-parsing-api.md
@@ -75,6 +75,7 @@ f - function or array containing php method call info (returned as
h - array (returned as HashTable*)
H - array or HASH_OF(object) (returned as HashTable*)
l - long (zend_long)
+n - long or double (zval*)
o - object of any type (zval*)
O - object of specific type given by class entry (zval*, zend_class_entry)
p - valid path (string without null bytes in the middle) and its length (char*, size_t)