mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
- Fixed bug #50152 (ReflectionClass::hasProperty hehaves like isset() not property_exists)
[5_2 is OK]
This commit is contained in:
parent
34bd384898
commit
eea23b2794
3 changed files with 3 additions and 2 deletions
|
@ -3533,7 +3533,7 @@ ZEND_METHOD(reflection_class, hasProperty)
|
|||
if (intern->obj && Z_OBJ_HANDLER_P(intern->obj, has_property)) {
|
||||
MAKE_STD_ZVAL(property);
|
||||
ZVAL_STRINGL(property, name, name_len, 1);
|
||||
if (Z_OBJ_HANDLER_P(intern->obj, has_property)(intern->obj, property, 0 TSRMLS_CC)) {
|
||||
if (Z_OBJ_HANDLER_P(intern->obj, has_property)(intern->obj, property, 2 TSRMLS_CC)) {
|
||||
zval_ptr_dtor(&property);
|
||||
RETURN_TRUE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue