diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2018-07-02 18:56:27 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-07-02 18:56:27 +0200 |
commit | c97b8bbf8252c3a493a44bcb91fb137952f03710 (patch) | |
tree | dada258f2d2dc8d5e86826422df33ac9b40c3046 /ext/reflection/php_reflection.c | |
parent | 787593b708372f67fdaabbe4ae7667f6ee5b062f (diff) | |
download | php-git-c97b8bbf8252c3a493a44bcb91fb137952f03710.tar.gz |
Fixed bug #75231
The behavior is now consistent with ReflectionMethod.
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 95b86e7283..690aaa0fe6 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -5645,7 +5645,7 @@ ZEND_METHOD(reflection_property, getValue) return; } - if (!instanceof_function(Z_OBJCE_P(object), ref->ce)) { + if (!instanceof_function(Z_OBJCE_P(object), ref->prop.ce)) { _DO_THROW("Given object is not an instance of the class this property was declared in"); /* Returns from this function */ } |