summaryrefslogtreecommitdiff
path: root/ext/standard/assert.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-06-12 13:33:14 +0300
committerDmitry Stogov <dmitry@zend.com>2015-06-12 13:33:14 +0300
commit1c754f0b71321861f8ecc723dbedfed8d4f23e69 (patch)
treeab176bb46a3408c940ea1ff6bf085ee50525b2bb /ext/standard/assert.c
parent8e10e8f921101e0787c8228d257107a204de3e36 (diff)
downloadphp-git-1c754f0b71321861f8ecc723dbedfed8d4f23e69.tar.gz
Get rid of more ZVAL_ZVAL() macros
Diffstat (limited to 'ext/standard/assert.c')
-rw-r--r--ext/standard/assert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/assert.c b/ext/standard/assert.c
index 59db4068bd..236c2c18e9 100644
--- a/ext/standard/assert.c
+++ b/ext/standard/assert.c
@@ -343,7 +343,7 @@ PHP_FUNCTION(assert_options)
case ASSERT_CALLBACK:
if (Z_TYPE(ASSERTG(callback)) != IS_UNDEF) {
- RETVAL_ZVAL(&ASSERTG(callback), 1, 0);
+ ZVAL_COPY(return_value, &ASSERTG(callback));
} else if (ASSERTG(cb)) {
RETVAL_STRING(ASSERTG(cb));
} else {