From 283f52f415ce644c1a1ae626d34a3f76983fd3df Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 29 May 2003 21:08:08 +0000 Subject: Optimize interface checks --- ext/spl/spl_engine.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ext/spl/spl_engine.h') diff --git a/ext/spl/spl_engine.h b/ext/spl/spl_engine.h index 90d2320734..ae9db4a450 100755 --- a/ext/spl/spl_engine.h +++ b/ext/spl/spl_engine.h @@ -106,7 +106,15 @@ void spl_unlock_zval_ptr_ptr(znode *node, temp_variable *Ts TSRMLS_DC); zval * spl_get_zval_ptr(znode *node, temp_variable *Ts, zval **should_free TSRMLS_DC); int spl_is_instance_of(zval **obj, zend_class_entry *ce TSRMLS_DC); -int spl_implements(zval **obj, zend_class_entry *ce TSRMLS_DC); + +typedef enum { + SPL_IS_A_ITERATOR = 1, + SPL_IS_A_FORWARD = 2, + SPL_IS_A_ASSOC = 4, + SPL_IS_A_SEQUENCE = 8 +} spl_is_a; + +spl_is_a spl_implements(zend_class_entry *ce); #endif /* SPL_ENGINE_H */ -- cgit v1.2.1