diff options
| author | Marcus Boerger <helly@php.net> | 2003-05-29 21:08:08 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2003-05-29 21:08:08 +0000 |
| commit | 283f52f415ce644c1a1ae626d34a3f76983fd3df (patch) | |
| tree | 9140f5edf27eb9dd68363f37e55c88a79e9a760f /ext/spl/spl_engine.h | |
| parent | 499f902a30fd8353aae4e8e9b105ec9d251401fa (diff) | |
| download | php-git-283f52f415ce644c1a1ae626d34a3f76983fd3df.tar.gz | |
Optimize interface checks
Diffstat (limited to 'ext/spl/spl_engine.h')
| -rwxr-xr-x | ext/spl/spl_engine.h | 10 |
1 files changed, 9 insertions, 1 deletions
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 */ |
