Permalink
Browse files

Implement proper interfaces

  • Loading branch information...
1 parent 36049c0 commit 289d3ea2958838162fd6ac19d0a60bba38f0a1ed @colder committed Sep 7, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 wr_weakmap.c
View
@@ -25,6 +25,8 @@
#include "php.h"
#include "zend_exceptions.h"
#include "ext/spl/spl_exceptions.h"
+#include "ext/spl/spl_iterators.h"
+#include "Zend/zend_interfaces.h"
#include "ext/standard/info.h"
#include "wr_weakmap.h"
#include "php_weakref.h"
@@ -456,6 +458,8 @@ PHP_MINIT_FUNCTION(wr_weakmap) /* {{{ */
wr_handler_WeakMap.has_dimension = wr_weakmap_object_has_dimension;
wr_handler_WeakMap.count_elements = wr_weakmap_object_count_elements;
+ zend_class_implements(wr_ce_WeakMap TSRMLS_CC, 2, spl_ce_Countable, spl_ce_ArrayAccess);
+
return SUCCESS;
}

0 comments on commit 289d3ea

Please sign in to comment.