summaryrefslogtreecommitdiff
path: root/ext/spl/spl_array.h
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-11-09 14:05:36 +0000
committerMarcus Boerger <helly@php.net>2003-11-09 14:05:36 +0000
commit159c538bcf7cc649410a7e91b11584dcebcf1b55 (patch)
tree2e5d3063aaf3733744fa81a1614fd526f9881be1 /ext/spl/spl_array.h
parent44dc9eb3e4ae8be3d3d187b8e6335d768447fed5 (diff)
downloadphp-git-159c538bcf7cc649410a7e91b11584dcebcf1b55.tar.gz
Major update:
- Remove all overloading hooks -> array_read/array_access must be rewritten - Remove all basic iterators - Remove all 'spl_' prefixing exposed to user level - Add RecursiveIterator, RecursiveIteratorIterator - Add DirectoryIterator, DirectoryTreeIterator - Add some examples
Diffstat (limited to 'ext/spl/spl_array.h')
-rwxr-xr-xext/spl/spl_array.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/ext/spl/spl_array.h b/ext/spl/spl_array.h
index 840a9627eb..d4bc03d876 100755
--- a/ext/spl/spl_array.h
+++ b/ext/spl/spl_array.h
@@ -22,16 +22,12 @@
#include "php.h"
#include "php_spl.h"
-#ifdef SPL_ARRAY_READ
-ZEND_EXECUTE_HOOK_FUNCTION(ZEND_FETCH_DIM_R);
-ZEND_EXECUTE_HOOK_FUNCTION(ZEND_FETCH_DIM_W);
-ZEND_EXECUTE_HOOK_FUNCTION(ZEND_FETCH_DIM_RW);
-#endif
+extern zend_class_entry *spl_ce_ArrayRead;
+extern zend_class_entry *spl_ce_ArrayAccess;
+extern zend_class_entry *spl_ce_ArrayClass;
+extern zend_class_entry *spl_ce_ArrayIterator;
-#ifdef SPL_ARRAY_WRITE
-ZEND_EXECUTE_HOOK_FUNCTION(ZEND_ASSIGN_DIM);
-ZEND_EXECUTE_HOOK_FUNCTION(ZEND_UNSET_DIM_OBJ);
-#endif
+PHP_MINIT_FUNCTION(spl_array);
#endif /* SPL_ARRAY_H */