diff options
author | Johannes Schlüter <johannes@php.net> | 2006-10-18 16:35:15 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2006-10-18 16:35:15 +0000 |
commit | dcf249004c3eea72b3405b3829b7f912fb4c6492 (patch) | |
tree | a48d29b75f4fe6c5ad1d8ed2a530bd869b16ce3e /ext/reflection/php_reflection.c | |
parent | b99ba323d56d16c598a37d8ae89b8472e974c42b (diff) | |
download | php-git-dcf249004c3eea72b3405b3829b7f912fb4c6492.tar.gz |
- MFH: Fix #38465 (ReflectionParameter fails if default value is an access to self::
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 22b134bba8..cf88d3f860 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -2132,7 +2132,7 @@ ZEND_METHOD(reflection_parameter, getDefaultValue) zv_copy = precv->op2.u.constant; zv = &zv_copy; - zval_update_constant(&zv, (void*)0 TSRMLS_CC); + zval_update_constant_ex(&zv, (void*)0, param->fptr->common.scope TSRMLS_CC); RETURN_ZVAL(zv, 1, 1); } /* }}} */ |