Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Fix README

  • Loading branch information...
commit dfd8ea7147088253712e05c09dc0420f9c9620b7 1 parent bb21c40
Derick Rethans authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.PARAMETER_PARSING_API
View
4 README.PARAMETER_PARSING_API
@@ -105,11 +105,13 @@ if (zend_parse_parameters(3 TSRMLS_CC, "zbr!",
/* Get either a set of 3 longs or a string. */
long l1, l2, l3;
char *s;
+long length;
+
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC,
"lll", &l1, &l2, &l3) == SUCCESS) {
/* manipulate longs */
} else if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC,
- "s", &s) == SUCCESS) {
+ "s", &s, &length) == SUCCESS) {
/* manipulate string */
} else {
/* output error */
Please sign in to comment.
Something went wrong with that request. Please try again.