Skip navigation.
Home

ZEND_MALIAS()

Create a method that is an alias for antother method in a zend_function_entry

ZEND_MALIAS(classname, name, alias, arg_info, flags)

type parameter description
text classname userpace name of the class of which this method will be a member
text name userspace name of this method
text alias userspace name of the method for which this method will be an alias
zend_arg_info* arg_info
zend_uint flags

Alias for "ZEND_FENTRY(name, ZEND_MN(classname##_##alias), arg_info, flags)"

Example:

static zend_function_entry function_methods[] = {
PHP_ME(myClass,funcOne,NULL,ZEND_ACC_PUBLIC)
PHP_MALIAS(myClass,funcTwo,funcOne,NULL,ZEND_ACC_PUBLIC)
{ NULL, NULL, NULL }
};