Permalink
Browse files

Fix order of macro parameter (synch with other macros)

  • Loading branch information...
1 parent 67502a2 commit 33cdc9ed368beb5d185006d9aafda5e04de9cb23 Marcus Boerger committed Apr 12, 2004
Showing with 2 additions and 2 deletions.
  1. +1 −1 Zend/zend_API.h
  2. +1 −1 ext/spl/spl_functions.h
View
@@ -53,7 +53,7 @@ typedef struct _zend_function_entry {
#define ZEND_FALIAS(name, alias, arg_info) ZEND_FENTRY(name, ZEND_FN(alias), arg_info, 0)
#define ZEND_ME(classname, name, arg_info, flags) ZEND_FENTRY(name, ZEND_FN(classname##_##name), arg_info, flags)
#define ZEND_ABSTRACT_ME(classname, name, arg_info) ZEND_FENTRY(name, NULL, arg_info, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
-#define ZEND_MALIAS(name, classname, alias, arg_info, flags) \
+#define ZEND_MALIAS(classname, name, alias, arg_info, flags) \
ZEND_FENTRY(name, ZEND_FN(classname##_##alias), arg_info, flags)
#define ZEND_ME_MAPPING(name, func_name, arg_types) ZEND_NAMED_FE(name, ZEND_FN(func_name), arg_types)
View
@@ -82,7 +82,7 @@ int spl_add_classes(zend_class_entry ** ppce, zval *list, int sub, int allow, in
PHP_METHOD(spl_ ## class_name, function_name)
#define SPL_MA(class_name, function_name, alias_class, alias_function, arg_info, flags) \
- ZEND_MALIAS(function_name, spl_ ## alias_class, alias_function, arg_info, flags)
+ ZEND_MALIAS(spl_ ## alias_class, function_name, alias_function, arg_info, flags)
#endif /* PHP_FUNCTIONS_H */
/*

0 comments on commit 33cdc9e

Please sign in to comment.