diff options
| author | Christopher Jones <christopher.jones@oracle.com> | 2018-12-10 12:53:12 +1100 |
|---|---|---|
| committer | Christopher Jones <christopher.jones@oracle.com> | 2018-12-10 12:53:12 +1100 |
| commit | a680f4f2be2ae8f6bf40bf9fcb3fac93b60b0b33 (patch) | |
| tree | dd5508c5bf173bb0633e1e7603c65bafca1030f5 /README.PARAMETER_PARSING_API | |
| parent | 46a4bc140db0e15098f47165fe84a2cf6a7c2920 (diff) | |
| download | php-git-a680f4f2be2ae8f6bf40bf9fcb3fac93b60b0b33.tar.gz | |
Link to the fast_zpp RFC
Diffstat (limited to 'README.PARAMETER_PARSING_API')
| -rw-r--r-- | README.PARAMETER_PARSING_API | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/README.PARAMETER_PARSING_API b/README.PARAMETER_PARSING_API index c725879fc4..f65c19a723 100644 --- a/README.PARAMETER_PARSING_API +++ b/README.PARAMETER_PARSING_API @@ -1,11 +1,21 @@ -New parameter parsing functions -=============================== - -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 +Fast Parameter Parsing API +========================== + +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. |
