diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2017-06-19 12:55:59 +0300 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2017-06-19 12:55:59 +0300 |
| commit | 9c2a1f52a5f087c70a9e91dc1f43e5718d1bd8b6 (patch) | |
| tree | 3eb7097ebb986594ae03e54142240fca4b82e5f3 /ext/standard/assert.c | |
| parent | 6fe75aad6da55e7ce473109e219fdc80bf3b7a51 (diff) | |
| download | php-git-9c2a1f52a5f087c70a9e91dc1f43e5718d1bd8b6.tar.gz | |
Avoid useless dereferences and separations during paramter passing.
Diffstat (limited to 'ext/standard/assert.c')
| -rw-r--r-- | ext/standard/assert.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/assert.c b/ext/standard/assert.c index 850fb824e2..87462185a8 100644 --- a/ext/standard/assert.c +++ b/ext/standard/assert.c @@ -158,9 +158,9 @@ PHP_FUNCTION(assert) } ZEND_PARSE_PARAMETERS_START(1, 2) - Z_PARAM_ZVAL_DEREF(assertion) + Z_PARAM_ZVAL(assertion) Z_PARAM_OPTIONAL - Z_PARAM_ZVAL_DEREF(description) + Z_PARAM_ZVAL(description) ZEND_PARSE_PARAMETERS_END(); if (Z_TYPE_P(assertion) == IS_STRING) { @@ -297,7 +297,7 @@ PHP_FUNCTION(assert_options) ZEND_PARSE_PARAMETERS_START(1, 2) Z_PARAM_LONG(what) Z_PARAM_OPTIONAL - Z_PARAM_ZVAL_DEREF(value) + Z_PARAM_ZVAL(value) ZEND_PARSE_PARAMETERS_END(); switch (what) { |
