From a680f4f2be2ae8f6bf40bf9fcb3fac93b60b0b33 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Mon, 10 Dec 2018 12:53:12 +1100 Subject: [PATCH] Link to the fast_zpp RFC --- README.PARAMETER_PARSING_API | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/README.PARAMETER_PARSING_API b/README.PARAMETER_PARSING_API index c725879fc4d..f65c19a7239 100644 --- a/README.PARAMETER_PARSING_API +++ b/README.PARAMETER_PARSING_API @@ -1,11 +1,21 @@ -New parameter parsing functions -=============================== +Fast Parameter Parsing API +========================== -It should be easier to parse input parameters to an extension function. -Hence, borrowing from Python's example, there are now a set of functions -that given the string of type specifiers, can parse the input parameters -and store the results in the user specified variables. This avoids most -of the IS_* checks and convert_to_* conversions. The functions also +In PHP 7, a "Fast Parameter Parsing API" was introduced. See + + https://wiki.php.net/rfc/fast_zpp + +This API uses inlining to improve applications performance compared +with the zend_parse_parameters() function described below. + + +Parameter parsing functions +=========================== + +Borrowing from Python's example, there is a set of functions that +given the string of type specifiers, can parse the input parameters +and store the results in the user specified variables. This avoids +using IS_* checks and convert_to_* conversions. The functions also check for the appropriate number of parameters, and try to output meaningful error messages.