summaryrefslogtreecommitdiff
path: root/Zend/zend_interfaces.c
diff options
context:
space:
mode:
authorAaron Piotrowski <aaron@trowski.com>2015-06-17 13:46:27 -0500
committerAaron Piotrowski <aaron@trowski.com>2015-06-17 13:54:09 -0500
commitc5eb924e9e43c59b564549e149b59ad9a4bee74a (patch)
tree6ac56d92c951bb887c0b987340de26899ce15764 /Zend/zend_interfaces.c
parent47fda68b031f8d1b1f3ec97e635af0726e34bdb7 (diff)
downloadphp-git-c5eb924e9e43c59b564549e149b59ad9a4bee74a.tar.gz
Rename interface macros
Renamed REGISTER_INTERFACE (formerly REGISTER_ITERATOR_INTERFACE) to REGISTER_MAGIC_INTERFACE and renamed REGISTER_ITERATOR_IMPLEMENT to REGISTER_MAGIC_IMPLEMENT. Both have now been moved to zend_interfaces.h.
Diffstat (limited to 'Zend/zend_interfaces.c')
-rw-r--r--Zend/zend_interfaces.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/Zend/zend_interfaces.c b/Zend/zend_interfaces.c
index 0e5942554f..3b4d2042f1 100644
--- a/Zend/zend_interfaces.c
+++ b/Zend/zend_interfaces.c
@@ -551,23 +551,20 @@ const zend_function_entry zend_funcs_serializable[] = {
};
/* }}} */
-#define REGISTER_ITERATOR_IMPLEMENT(class_name, interface_name) \
- zend_class_implements(zend_ce_ ## class_name, 1, zend_ce_ ## interface_name)
-
/* {{{ zend_register_interfaces */
ZEND_API void zend_register_interfaces(void)
{
- REGISTER_INTERFACE(traversable, Traversable);
+ REGISTER_MAGIC_INTERFACE(traversable, Traversable);
- REGISTER_INTERFACE(aggregate, IteratorAggregate);
- REGISTER_ITERATOR_IMPLEMENT(aggregate, traversable);
+ REGISTER_MAGIC_INTERFACE(aggregate, IteratorAggregate);
+ REGISTER_MAGIC_IMPLEMENT(aggregate, traversable);
- REGISTER_INTERFACE(iterator, Iterator);
- REGISTER_ITERATOR_IMPLEMENT(iterator, traversable);
+ REGISTER_MAGIC_INTERFACE(iterator, Iterator);
+ REGISTER_MAGIC_IMPLEMENT(iterator, traversable);
- REGISTER_INTERFACE(arrayaccess, ArrayAccess);
+ REGISTER_MAGIC_INTERFACE(arrayaccess, ArrayAccess);
- REGISTER_INTERFACE(serializable, Serializable);
+ REGISTER_MAGIC_INTERFACE(serializable, Serializable);
}
/* }}} */