From 6ee6097688a8c64e0e0ba166d48b16a93bf107a2 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 16 Feb 2020 16:41:43 +0100 Subject: 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. --- docs/parameter-parsing-api.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') 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) -- cgit v1.2.1