1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 20:53:00 +02:00

- Add support for methods dynamically added through object handlers

This commit is contained in:
Marcus Boerger
2005-02-28 18:53:33 +00:00
parent eb330a95f6
commit ddd62f2b07

View File

@@ -878,8 +878,14 @@ ZEND_FUNCTION(method_exists)
RETURN_TRUE;
} else {
efree(lcname);
RETURN_FALSE;
if (Z_TYPE_PP(klass) == IS_OBJECT
&& Z_OBJ_HT_PP(klass)->get_method != NULL
&& Z_OBJ_HT_PP(klass)->get_method(klass, Z_STRVAL_PP(method_name), Z_STRLEN_PP(method_name) TSRMLS_CC) != NULL
) {
RETURN_TRUE;
}
}
RETURN_FALSE;
}
/* }}} */