summaryrefslogtreecommitdiff
path: root/ext/reflection
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-07-11 16:32:20 +0400
committerDmitry Stogov <dmitry@zend.com>2014-07-11 16:32:20 +0400
commit27f38798a1963de1c60aae4ef8a3675138255574 (patch)
tree479abed5848c1b7c9eacec88c85d98c80acf07e7 /ext/reflection
parent8f229b285527a403d46be047546384032a0f6bb3 (diff)
downloadphp-git-27f38798a1963de1c60aae4ef8a3675138255574.tar.gz
Fast parameter parsing API
This API is experemental. It may be changed or removed. It should be used only for really often used functions. (Keep the original parsing code and wrap usage with #ifndef FAST_ZPP)
Diffstat (limited to 'ext/reflection')
-rw-r--r--ext/reflection/php_reflection.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index afa1a3dd06..7247542951 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -1494,9 +1494,17 @@ ZEND_METHOD(reflection, export)
int result;
zend_bool return_output = 0;
+#ifndef FAST_ZPP
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O|b", &object, reflector_ptr, &return_output) == FAILURE) {
return;
}
+#else
+ ZEND_PARSE_PARAMETERS_START(1, 2)
+ Z_PARAM_OBJECT_OF_CLASS(object, reflector_ptr)
+ Z_PARAM_OPTIONAL
+ Z_PARAM_BOOL(return_output)
+ ZEND_PARSE_PARAMETERS_END();
+#endif
/* Invoke the __toString() method */
ZVAL_STRINGL(&fname, "__tostring", sizeof("__tostring") - 1);