]> granicus.if.org Git - php/commitdiff
- Fix README
authorDerick Rethans <derick@php.net>
Wed, 3 Jul 2002 14:01:18 +0000 (14:01 +0000)
committerDerick Rethans <derick@php.net>
Wed, 3 Jul 2002 14:01:18 +0000 (14:01 +0000)
README.PARAMETER_PARSING_API

index 1c6eea520080e30c84d217c47064fa94e5c2cf7a..0fb2dacce85309855ed30182079362a5b9d0a985 100644 (file)
@@ -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 */