diff options
author | Derick Rethans <derick@php.net> | 2002-07-03 14:01:18 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2002-07-03 14:01:18 +0000 |
commit | dfd8ea7147088253712e05c09dc0420f9c9620b7 (patch) | |
tree | 8a158bd804301ddef8e507ce51895f10af2dfb51 /README.PARAMETER_PARSING_API | |
parent | bb21c4073827a42088bc2f3b3806f075f9a43a04 (diff) | |
download | php-git-dfd8ea7147088253712e05c09dc0420f9c9620b7.tar.gz |
- Fix README
Diffstat (limited to 'README.PARAMETER_PARSING_API')
-rw-r--r-- | README.PARAMETER_PARSING_API | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/README.PARAMETER_PARSING_API b/README.PARAMETER_PARSING_API index 1c6eea5200..0fb2dacce8 100644 --- a/README.PARAMETER_PARSING_API +++ b/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 */ |