diff options
author | Felipe Pena <felipe@php.net> | 2009-11-11 18:52:12 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-11-11 18:52:12 +0000 |
commit | eea23b2794eb71231f2dce1c774b64c9bd2ec41c (patch) | |
tree | 2219ca8a81dcfcf14f7b05c4d08ff1d4f41f3c2b /ext/reflection/php_reflection.c | |
parent | 34bd384898d4e6c6dd9658881e89a12ce07a3f8b (diff) | |
download | php-git-eea23b2794eb71231f2dce1c774b64c9bd2ec41c.tar.gz |
- Fixed bug #50152 (ReflectionClass::hasProperty hehaves like isset() not property_exists)
[5_2 is OK]
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 9589307f04..1a2f2a4bbc 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -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; } |