mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Fixed bug #33277 (private method accessed by child class)
This commit is contained in:
parent
a32c1f9eee
commit
d1ee85c2dd
2 changed files with 3 additions and 1 deletions
1
NEWS
1
NEWS
|
@ -15,6 +15,7 @@ PHP NEWS
|
||||||
- Fixed bug #33318 (throw 1; results in Invalid opcode 108/1/8). (Dmitry)
|
- Fixed bug #33318 (throw 1; results in Invalid opcode 108/1/8). (Dmitry)
|
||||||
- Fixed bug #33312 (ReflectionParameter methods do not work correctly).
|
- Fixed bug #33312 (ReflectionParameter methods do not work correctly).
|
||||||
(Dmitry)
|
(Dmitry)
|
||||||
|
- Fixed bug #33277 (private method accessed by child class). (Dmitry)
|
||||||
- Fixed bug #33212 ([GCC 4]: 'zend_error_noreturn' aliased to external symbol
|
- Fixed bug #33212 ([GCC 4]: 'zend_error_noreturn' aliased to external symbol
|
||||||
'zend_error'). (Dmitry)
|
'zend_error'). (Dmitry)
|
||||||
- Fixed bug #31256 (PHP_EVAL_LIBLINE configure macro does not handle -pthread).
|
- Fixed bug #31256 (PHP_EVAL_LIBLINE configure macro does not handle -pthread).
|
||||||
|
|
|
@ -676,7 +676,8 @@ static union _zend_function *zend_std_get_method(zval **object_ptr, char *method
|
||||||
zend_function *priv_fbc;
|
zend_function *priv_fbc;
|
||||||
|
|
||||||
if (zend_hash_find(&EG(scope)->function_table, lc_method_name, method_len+1, (void **) &priv_fbc)==SUCCESS
|
if (zend_hash_find(&EG(scope)->function_table, lc_method_name, method_len+1, (void **) &priv_fbc)==SUCCESS
|
||||||
&& priv_fbc->common.fn_flags & ZEND_ACC_PRIVATE) {
|
&& priv_fbc->common.fn_flags & ZEND_ACC_PRIVATE
|
||||||
|
&& priv_fbc->common.scope == EG(scope)) {
|
||||||
fbc = priv_fbc;
|
fbc = priv_fbc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue