#include "spl_functions.h"
#include "spl_engine.h"
#include "spl_iterators.h"
+#include "spl_directory.h"
#include "php.h"
#include "fopen_wrappers.h"
zend_class_entry *spl_ce_RecursiveDirectoryIterator;
-/* the overloaded class structure */
-
-/* overloading the structure results in the need of having
- dedicated creatin/cloning/destruction functions */
-typedef struct _spl_ce_dir_object {
- zend_object std;
- php_stream *dirp;
- php_stream_dirent entry;
- char *path;
- int index;
-} spl_ce_dir_object;
-
-
/* {{{ spl_ce_dir_object_dtor */
/* close all resources and the memory allocated for the object */
static void spl_ce_dir_object_dtor(void *object, zend_object_handle handle TSRMLS_DC)
PHP_MINIT_FUNCTION(spl_directory);
+typedef struct _spl_ce_dir_object {
+ zend_object std;
+ php_stream *dirp;
+ php_stream_dirent entry;
+ char *path;
+ int index;
+} spl_ce_dir_object;
+
#endif /* SPL_DIRECTORY_H */
/*