Skip to content

Commit a680f4f

Browse files
committed
Link to the fast_zpp RFC
1 parent 46a4bc1 commit a680f4f

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

Diff for: README.PARAMETER_PARSING_API

+18-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
New parameter parsing functions
2-
===============================
3-
4-
It should be easier to parse input parameters to an extension function.
5-
Hence, borrowing from Python's example, there are now a set of functions
6-
that given the string of type specifiers, can parse the input parameters
7-
and store the results in the user specified variables. This avoids most
8-
of the IS_* checks and convert_to_* conversions. The functions also
1+
Fast Parameter Parsing API
2+
==========================
3+
4+
In PHP 7, a "Fast Parameter Parsing API" was introduced. See
5+
6+
https://wiki.php.net/rfc/fast_zpp
7+
8+
This API uses inlining to improve applications performance compared
9+
with the zend_parse_parameters() function described below.
10+
11+
12+
Parameter parsing functions
13+
===========================
14+
15+
Borrowing from Python's example, there is a set of functions that
16+
given the string of type specifiers, can parse the input parameters
17+
and store the results in the user specified variables. This avoids
18+
using IS_* checks and convert_to_* conversions. The functions also
919
check for the appropriate number of parameters, and try to output
1020
meaningful error messages.
1121

0 commit comments

Comments
 (0)