cvs: php4 / README.PARAMETER_PARSING_API
| From: | Rasmus Lerdorf | Date: | Tue, 23 Oct 2001 19:57:45 +0000 |
| Subject: | cvs: php4 / README.PARAMETER_PARSING_API | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7967@lists.php.net to get a copy of this message | ||
rasmus Tue Oct 23 15:57:45 2001 EDT
Modified files:
/php4 README.PARAMETER_PARSING_API
Log:
Minor tweaks
Index: php4/README.PARAMETER_PARSING_API
diff -u php4/README.PARAMETER_PARSING_API:1.2 php4/README.PARAMETER_PARSING_API:1.3
--- php4/README.PARAMETER_PARSING_API:1.2 Mon Oct 22 16:37:11 2001
+++ php4/README.PARAMETER_PARSING_API Tue Oct 23 15:57:45 2001
@@ -67,6 +67,7 @@
/* 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 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;
}