Skip to content
Browse files

Minor tweaks

  • Loading branch information...
1 parent 71d341e commit 550550f746ec0c4ac8df2d9e2aab2a7051cec976 @rlerdorf rlerdorf committed Oct 23, 2001
Showing with 4 additions and 3 deletions.
  1. +4 −3 README.PARAMETER_PARSING_API
View
7 README.PARAMETER_PARSING_API
@@ -67,6 +67,7 @@ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lsz",
/* Gets an object of class specified by my_ce, and an optional double. */
zval *obj;
double d = 0.5;
+zend_class_entry my_ce;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O|d",
&obj, my_ce, &d) == FAILURE) {
return;
@@ -77,15 +78,15 @@ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O|d",
If null is passed for object, obj will be set to NULL. */
zval *obj;
zval *arr;
-if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O!a",
+if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "o!a",
&obj, &arr) == FAILURE) {
return;
}
-/* Gets a separated array. */
+/* Gets a separated array which can also be null. */
zval *arr;
-if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a/",
+if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a/!",
&arr) == FAILURE) {
return;
}

0 comments on commit 550550f

Please sign in to comment.
Something went wrong with that request. Please try again.