mirror of
https://github.com/php/php-src.git
synced 2024-12-21 07:51:23 +08:00
Merge branch 'PHP-5.4'
* PHP-5.4: Fixed Bug #62202 (ReflectionParameter::getDefaultValue() memory leaks with constant) sort NEWS
This commit is contained in:
commit
fc6462ec7b
@ -2561,7 +2561,8 @@ ZEND_METHOD(reflection_parameter, getDefaultValue)
|
||||
|
||||
*return_value = *precv->op2.zv;
|
||||
INIT_PZVAL(return_value);
|
||||
if (Z_TYPE_P(return_value) != IS_CONSTANT && Z_TYPE_P(return_value) != IS_CONSTANT_ARRAY) {
|
||||
if ((Z_TYPE_P(return_value) & IS_CONSTANT_TYPE_MASK) != IS_CONSTANT
|
||||
&& (Z_TYPE_P(return_value) & IS_CONSTANT_TYPE_MASK) != IS_CONSTANT_ARRAY) {
|
||||
zval_copy_ctor(return_value);
|
||||
}
|
||||
zval_update_constant_ex(&return_value, (void*)0, param->fptr->common.scope TSRMLS_CC);
|
||||
|
Loading…
Reference in New Issue
Block a user