php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #73195
Patch 73195 revision 2016-09-28 15:49 UTC by cmb@php.net

Patch 73195 for Reflection related Bug #73195

Patch version 2016-09-28 15:49 UTC

Return to Bug #73195 | Download this patch
Patch Revisions:

Developer: cmb@php.net

 ext/reflection/php_reflection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 16601ee..7c66ddd 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -4292,7 +4292,7 @@ static void _addmethod(zend_function *mptr, zend_class_entry *ce, zval *retval,
 	zval method;
 	size_t len = ZSTR_LEN(mptr->common.function_name);
 	zend_function *closure;
-	if (mptr->common.fn_flags & filter) {
+	if ((mptr->common.fn_flags & filter) == filter) {
 		if (ce == zend_ce_closure && obj && (len == sizeof(ZEND_INVOKE_FUNC_NAME)-1)
 			&& memcmp(ZSTR_VAL(mptr->common.function_name), ZEND_INVOKE_FUNC_NAME, sizeof(ZEND_INVOKE_FUNC_NAME)-1) == 0
 			&& (closure = zend_get_closure_invoke_method(Z_OBJ_P(obj))) != NULL)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 03:02:51 2024 UTC