]> granicus.if.org Git - php/commitdiff
MFH: Rename everything from SplFastArray to SplFixedArray
authorEtienne Kneuss <colder@php.net>
Wed, 18 Jun 2008 14:54:40 +0000 (14:54 +0000)
committerEtienne Kneuss <colder@php.net>
Wed, 18 Jun 2008 14:54:40 +0000 (14:54 +0000)
22 files changed:
ext/spl/config.m4
ext/spl/config.w32
ext/spl/php_spl.c
ext/spl/spl_fixedarray.c [moved from ext/spl/spl_fastarray.c with 58% similarity]
ext/spl/spl_fixedarray.h [moved from ext/spl/spl_fastarray.h with 89% similarity]
ext/spl/tests/fastarray_005.phpt [deleted file]
ext/spl/tests/fastarray_009.phpt [deleted file]
ext/spl/tests/fixedarray_001.phpt [moved from ext/spl/tests/fastarray_001.phpt with 94% similarity]
ext/spl/tests/fixedarray_002.phpt [moved from ext/spl/tests/fastarray_002.phpt with 96% similarity]
ext/spl/tests/fixedarray_003.phpt [moved from ext/spl/tests/fastarray_003.phpt with 93% similarity]
ext/spl/tests/fixedarray_004.phpt [moved from ext/spl/tests/fastarray_004.phpt with 73% similarity]
ext/spl/tests/fixedarray_005.phpt [new file with mode: 0644]
ext/spl/tests/fixedarray_006.phpt [moved from ext/spl/tests/fastarray_006.phpt with 77% similarity]
ext/spl/tests/fixedarray_007.phpt [moved from ext/spl/tests/fastarray_007.phpt with 74% similarity]
ext/spl/tests/fixedarray_008.phpt [moved from ext/spl/tests/fastarray_008.phpt with 72% similarity]
ext/spl/tests/fixedarray_009.phpt [new file with mode: 0644]
ext/spl/tests/fixedarray_010.phpt [moved from ext/spl/tests/fastarray_010.phpt with 58% similarity]
ext/spl/tests/fixedarray_011.phpt [moved from ext/spl/tests/fastarray_011.phpt with 51% similarity]
ext/spl/tests/fixedarray_012.phpt [moved from ext/spl/tests/fastarray_012.phpt with 63% similarity]
ext/spl/tests/fixedarray_013.phpt [moved from ext/spl/tests/fastarray_013.phpt with 57% similarity]
ext/spl/tests/fixedarray_014.phpt [moved from ext/spl/tests/fastarray_014.phpt with 63% similarity]
ext/spl/tests/fixedarray_015.phpt [moved from ext/spl/tests/fastarray_015.phpt with 79% similarity]

index ee02cd4ec69de9e74e25335a5b975cc56e0fe6f5..f4e9b5ba5bbab1d2dab0f6ef9ad630f6454e6275 100755 (executable)
@@ -22,6 +22,6 @@ int main(int argc, char **argv) {
   CPPFLAGS=$old_CPPFLAGS
   AC_DEFINE_UNQUOTED(HAVE_PACKED_OBJECT_VALUE, $ac_result, [Whether struct _zend_object_value is packed])
   AC_DEFINE(HAVE_SPL, 1, [Whether you want SPL (Standard PHP Library) support]) 
-  PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_sxe.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fastarray.c, no)
-  PHP_INSTALL_HEADERS([ext/spl], [php_spl.h spl_array.h spl_directory.h spl_engine.h spl_exceptions.h spl_functions.h spl_iterators.h spl_observer.h spl_sxe.h spl_dllist.h spl_heap.h spl_fastarray.h])
+  PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_sxe.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c, no)
+  PHP_INSTALL_HEADERS([ext/spl], [php_spl.h spl_array.h spl_directory.h spl_engine.h spl_exceptions.h spl_functions.h spl_iterators.h spl_observer.h spl_sxe.h spl_dllist.h spl_heap.h spl_fixedarray.h])
   PHP_ADD_EXTENSION_DEP(spl, pcre, true)
index 7eaf7fad554701adb93d462abe58887842e594b9..08f33da7557dcbee3c4aadeb468bcd6b37074099 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 // vim:ft=javascript
 
-       EXTENSION("spl", "php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_sxe.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fastarray.c", false /*never shared */);
+       EXTENSION("spl", "php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_sxe.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c", false /*never shared */);
        AC_DEFINE('HAVE_SPL', 1);
 
index f6961ac5ea10e7bf9351e9e387cf88f1651a84a7..34ab2d192d07b77f3e825bd604c8fad2f43d5188 100755 (executable)
@@ -36,7 +36,7 @@
 #include "spl_exceptions.h"
 #include "spl_observer.h"
 #include "spl_dllist.h"
-#include "spl_fastarray.h"
+#include "spl_fixedarray.h"
 #include "spl_heap.h"
 #include "zend_exceptions.h"
 #include "zend_interfaces.h"
@@ -163,7 +163,7 @@ PHP_FUNCTION(class_implements)
        SPL_ADD_CLASS(SplMinHeap, z_list, sub, allow, ce_flags); \
        SPL_ADD_CLASS(SplMaxHeap, z_list, sub, allow, ce_flags); \
        SPL_ADD_CLASS(SplPriorityQueue, z_list, sub, allow, ce_flags); \
-       SPL_ADD_CLASS(SplFastArray, z_list, sub, allow, ce_flags); \
+       SPL_ADD_CLASS(SplFixedArray, z_list, sub, allow, ce_flags); \
        SPL_ADD_CLASS(BadFunctionCallException, z_list, sub, allow, ce_flags); \
        SPL_ADD_CLASS(BadMethodCallException, z_list, sub, allow, ce_flags); \
        SPL_ADD_CLASS(CachingIterator, z_list, sub, allow, ce_flags); \
@@ -782,7 +782,7 @@ PHP_MINIT_FUNCTION(spl)
        PHP_MINIT(spl_sxe)(INIT_FUNC_ARGS_PASSTHRU);
        PHP_MINIT(spl_dllist)(INIT_FUNC_ARGS_PASSTHRU);
        PHP_MINIT(spl_heap)(INIT_FUNC_ARGS_PASSTHRU);
-       PHP_MINIT(spl_fastarray)(INIT_FUNC_ARGS_PASSTHRU);
+       PHP_MINIT(spl_fixedarray)(INIT_FUNC_ARGS_PASSTHRU);
        PHP_MINIT(spl_observer)(INIT_FUNC_ARGS_PASSTHRU);
 
        return SUCCESS;
similarity index 58%
rename from ext/spl/spl_fastarray.c
rename to ext/spl/spl_fixedarray.c
index f9cd75ea6970a8c10c8f5cc29f95135ab30d93e9..52c7cf659a9fbd26f1e9603602866b6be63ad0b1 100644 (file)
 #include "php_spl.h"
 #include "spl_functions.h"
 #include "spl_engine.h"
-#include "spl_fastarray.h"
+#include "spl_fixedarray.h"
 #include "spl_exceptions.h"
 #include "spl_iterators.h"
 
-zend_object_handlers spl_handler_SplFastArray;
-PHPAPI zend_class_entry *spl_ce_SplFastArray;
+zend_object_handlers spl_handler_SplFixedArray;
+PHPAPI zend_class_entry *spl_ce_SplFixedArray;
 
-#ifdef COMPILE_DL_SPL_FASTARRAY
-ZEND_GET_MODULE(spl_fastarray)
+#ifdef COMPILE_DL_SPL_FIXEDARRAY
+ZEND_GET_MODULE(spl_fixedarray)
 #endif
 
-typedef struct _spl_fastarray { /* {{{ */
+typedef struct _spl_fixedarray { /* {{{ */
        long size;
        zval **elements;
-} spl_fastarray;
+} spl_fixedarray;
 /* }}} */
 
-typedef struct _spl_fastarray_object { /* {{{ */
+typedef struct _spl_fixedarray_object { /* {{{ */
        zend_object            std;
-       spl_fastarray         *array;
+       spl_fixedarray         *array;
        zval                  *retval;
        zend_function         *fptr_offset_get;
        zend_function         *fptr_offset_set;
@@ -63,16 +63,16 @@ typedef struct _spl_fastarray_object { /* {{{ */
        zend_function         *fptr_it_valid;
        int                    current;
        zend_class_entry      *ce_get_iterator;
-} spl_fastarray_object;
+} spl_fixedarray_object;
 /* }}} */
 
-typedef struct _spl_fastarray_it { /* {{{ */
+typedef struct _spl_fixedarray_it { /* {{{ */
        zend_user_iterator     intern;
-       spl_fastarray_object  *object;
-} spl_fastarray_it;
+       spl_fixedarray_object  *object;
+} spl_fixedarray_it;
 /* }}} */
 
-static void spl_fastarray_init(spl_fastarray *array, long size TSRMLS_DC) /* {{{ */
+static void spl_fixedarray_init(spl_fixedarray *array, long size TSRMLS_DC) /* {{{ */
 {
        if (size > 0) {
                array->size = 0; /* reset size in case ecalloc() fails */
@@ -85,7 +85,7 @@ static void spl_fastarray_init(spl_fastarray *array, long size TSRMLS_DC) /* {{{
 }
 /* }}} */
 
-static void spl_fastarray_resize(spl_fastarray *array, long size TSRMLS_DC) /* {{{ */
+static void spl_fixedarray_resize(spl_fixedarray *array, long size TSRMLS_DC) /* {{{ */
 {
        if (size == array->size) {
                /* nothing to do */
@@ -94,7 +94,7 @@ static void spl_fastarray_resize(spl_fastarray *array, long size TSRMLS_DC) /* {
 
        /* first initialization */
        if (array->size == 0) {
-               spl_fastarray_init(array, size TSRMLS_CC);
+               spl_fixedarray_init(array, size TSRMLS_CC);
                return;
        }
 
@@ -130,7 +130,7 @@ static void spl_fastarray_resize(spl_fastarray *array, long size TSRMLS_DC) /* {
 }
 /* }}} */
 
-static void spl_fastarray_copy(spl_fastarray *to, spl_fastarray *from TSRMLS_DC) /* {{{ */
+static void spl_fixedarray_copy(spl_fixedarray *to, spl_fixedarray *from TSRMLS_DC) /* {{{ */
 {
        int i;
        for (i = 0; i < from->size; i++) {
@@ -144,11 +144,11 @@ static void spl_fastarray_copy(spl_fastarray *to, spl_fastarray *from TSRMLS_DC)
 }
 /* }}} */
 
-static HashTable* spl_fastarray_object_get_debug_info(zval *obj, int *is_temp TSRMLS_DC) /* {{{{ */
+static HashTable* spl_fixedarray_object_get_debug_info(zval *obj, int *is_temp TSRMLS_DC) /* {{{{ */
 {
-       spl_fastarray_object *intern  = (spl_fastarray_object*)zend_object_store_get_object(obj TSRMLS_CC);
+       spl_fixedarray_object *intern  = (spl_fixedarray_object*)zend_object_store_get_object(obj TSRMLS_CC);
        HashTable *rv;
-       zval *tmp, zrv, *fastarray_array;
+       zval *tmp, zrv, *fixedarray_array;
        char *pnstr;
        int  pnlen;
        int  i = 0;;
@@ -163,33 +163,33 @@ static HashTable* spl_fastarray_object_get_debug_info(zval *obj, int *is_temp TS
 
        zend_hash_copy(rv, intern->std.properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
 
-       ALLOC_INIT_ZVAL(fastarray_array);
-       array_init(fastarray_array);
+       ALLOC_INIT_ZVAL(fixedarray_array);
+       array_init(fixedarray_array);
 
 
        if (intern->array) {
                for (i = 0; i < intern->array->size; i++) {
                        if (intern->array->elements[i]) {
-                               add_index_zval(fastarray_array, i, (zval *)intern->array->elements[i]);
+                               add_index_zval(fixedarray_array, i, (zval *)intern->array->elements[i]);
                                Z_ADDREF_P(intern->array->elements[i]);
                        } else {
-                               add_index_zval(fastarray_array, i, (zval *)EG(uninitialized_zval_ptr));
+                               add_index_zval(fixedarray_array, i, (zval *)EG(uninitialized_zval_ptr));
                                Z_ADDREF_P(EG(uninitialized_zval_ptr));
                        }
                }
        }
 
-       pnstr = spl_gen_private_prop_name(spl_ce_SplFastArray, "array", sizeof("array")-1, &pnlen TSRMLS_CC);
-       add_assoc_zval_ex(&zrv, pnstr, pnlen+1, fastarray_array);
+       pnstr = spl_gen_private_prop_name(spl_ce_SplFixedArray, "array", sizeof("array")-1, &pnlen TSRMLS_CC);
+       add_assoc_zval_ex(&zrv, pnstr, pnlen+1, fixedarray_array);
        efree(pnstr);
 
        return rv;
 }
 /* }}}} */
 
-static void spl_fastarray_object_free_storage(void *object TSRMLS_DC) /* {{{ */
+static void spl_fixedarray_object_free_storage(void *object TSRMLS_DC) /* {{{ */
 {
-       spl_fastarray_object *intern = (spl_fastarray_object *)object;
+       spl_fixedarray_object *intern = (spl_fixedarray_object *)object;
        long i;
 
        if (intern->array) {
@@ -212,17 +212,17 @@ static void spl_fastarray_object_free_storage(void *object TSRMLS_DC) /* {{{ */
 }
 /* }}} */
 
-zend_object_iterator *spl_fastarray_get_iterator(zend_class_entry *ce, zval *object, int by_ref TSRMLS_DC);
+zend_object_iterator *spl_fixedarray_get_iterator(zend_class_entry *ce, zval *object, int by_ref TSRMLS_DC);
 
-static zend_object_value spl_fastarray_object_new_ex(zend_class_entry *class_type, spl_fastarray_object **obj, zval *orig, int clone_orig TSRMLS_DC) /* {{{ */
+static zend_object_value spl_fixedarray_object_new_ex(zend_class_entry *class_type, spl_fixedarray_object **obj, zval *orig, int clone_orig TSRMLS_DC) /* {{{ */
 {
        zend_object_value     retval;
-       spl_fastarray_object *intern;
+       spl_fixedarray_object *intern;
        zval                 *tmp;
        zend_class_entry     *parent = class_type;
        int                   inherited = 0;
 
-       intern = ecalloc(1, sizeof(spl_fastarray_object));
+       intern = ecalloc(1, sizeof(spl_fixedarray_object));
        *obj = intern;
        ALLOC_INIT_ZVAL(intern->retval);
 
@@ -232,17 +232,17 @@ static zend_object_value spl_fastarray_object_new_ex(zend_class_entry *class_typ
        intern->current = 0;
 
        if (orig && clone_orig) {
-               spl_fastarray_object *other = (spl_fastarray_object*)zend_object_store_get_object(orig TSRMLS_CC);
+               spl_fixedarray_object *other = (spl_fixedarray_object*)zend_object_store_get_object(orig TSRMLS_CC);
                intern->ce_get_iterator = other->ce_get_iterator;
 
-               intern->array = emalloc(sizeof(spl_fastarray));
-               spl_fastarray_init(intern->array, other->array->size TSRMLS_CC);
-               spl_fastarray_copy(intern->array, other->array TSRMLS_CC);
+               intern->array = emalloc(sizeof(spl_fixedarray));
+               spl_fixedarray_init(intern->array, other->array->size TSRMLS_CC);
+               spl_fixedarray_copy(intern->array, other->array TSRMLS_CC);
        }
 
        while (parent) {
-               if (parent == spl_ce_SplFastArray) {
-                       retval.handlers = &spl_handler_SplFastArray;
+               if (parent == spl_ce_SplFixedArray) {
+                       retval.handlers = &spl_handler_SplFixedArray;
                        break;
                }
 
@@ -250,10 +250,10 @@ static zend_object_value spl_fastarray_object_new_ex(zend_class_entry *class_typ
                inherited = 1;
        }
 
-       retval.handle = zend_objects_store_put(intern, (zend_objects_store_dtor_t)zend_objects_destroy_object, spl_fastarray_object_free_storage, NULL TSRMLS_CC);
+       retval.handle = zend_objects_store_put(intern, (zend_objects_store_dtor_t)zend_objects_destroy_object, spl_fixedarray_object_free_storage, NULL TSRMLS_CC);
 
        if (!parent) { /* this must never happen */
-               php_error_docref(NULL TSRMLS_CC, E_COMPILE_ERROR, "Internal compiler error, Class is not child of SplFastArray");
+               php_error_docref(NULL TSRMLS_CC, E_COMPILE_ERROR, "Internal compiler error, Class is not child of SplFixedArray");
        }
        if (inherited) {
                zend_hash_find(&class_type->function_table, "offsetget",    sizeof("offsetget"),    (void **) &intern->fptr_offset_get);
@@ -298,23 +298,23 @@ static zend_object_value spl_fastarray_object_new_ex(zend_class_entry *class_typ
 }
 /* }}} */
 
-static zend_object_value spl_fastarray_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
+static zend_object_value spl_fixedarray_new(zend_class_entry *class_type TSRMLS_DC) /* {{{ */
 {
-       spl_fastarray_object *tmp;
-       return spl_fastarray_object_new_ex(class_type, &tmp, NULL, 0 TSRMLS_CC);
+       spl_fixedarray_object *tmp;
+       return spl_fixedarray_object_new_ex(class_type, &tmp, NULL, 0 TSRMLS_CC);
 }
 /* }}} */
 
-static zend_object_value spl_fastarray_object_clone(zval *zobject TSRMLS_DC) /* {{{ */
+static zend_object_value spl_fixedarray_object_clone(zval *zobject TSRMLS_DC) /* {{{ */
 {
        zend_object_value      new_obj_val;
        zend_object           *old_object;
        zend_object           *new_object;
        zend_object_handle     handle = Z_OBJ_HANDLE_P(zobject);
-       spl_fastarray_object  *intern;
+       spl_fixedarray_object  *intern;
 
        old_object  = zend_objects_get_address(zobject TSRMLS_CC);
-       new_obj_val = spl_fastarray_object_new_ex(old_object->ce, &intern, zobject, 1 TSRMLS_CC);
+       new_obj_val = spl_fixedarray_object_new_ex(old_object->ce, &intern, zobject, 1 TSRMLS_CC);
        new_object  = &intern->std;
 
        zend_objects_clone_members(new_object, new_obj_val, old_object, handle TSRMLS_CC);
@@ -323,7 +323,7 @@ static zend_object_value spl_fastarray_object_clone(zval *zobject TSRMLS_DC) /*
 }
 /* }}} */
 
-static inline zval **spl_fastarray_object_read_dimension_helper(spl_fastarray_object *intern, zval *offset TSRMLS_DC) /* {{{ */
+static inline zval **spl_fixedarray_object_read_dimension_helper(spl_fixedarray_object *intern, zval *offset TSRMLS_DC) /* {{{ */
 {
        long index;
 
@@ -347,12 +347,12 @@ static inline zval **spl_fastarray_object_read_dimension_helper(spl_fastarray_ob
 }
 /* }}} */
 
-static zval *spl_fastarray_object_read_dimension(zval *object, zval *offset, int type TSRMLS_DC) /* {{{ */
+static zval *spl_fixedarray_object_read_dimension(zval *object, zval *offset, int type TSRMLS_DC) /* {{{ */
 {
-       spl_fastarray_object *intern;
+       spl_fixedarray_object *intern;
        zval **retval;
 
-       intern = (spl_fastarray_object *)zend_object_store_get_object(object TSRMLS_CC);
+       intern = (spl_fixedarray_object *)zend_object_store_get_object(object TSRMLS_CC);
 
        if (intern->fptr_offset_get) {
                zval *rv;
@@ -368,7 +368,7 @@ static zval *spl_fastarray_object_read_dimension(zval *object, zval *offset, int
                return EG(uninitialized_zval_ptr);
        }
 
-       retval = spl_fastarray_object_read_dimension_helper(intern, offset TSRMLS_CC);
+       retval = spl_fixedarray_object_read_dimension_helper(intern, offset TSRMLS_CC);
        if (retval) {
                return *retval;
        }
@@ -376,7 +376,7 @@ static zval *spl_fastarray_object_read_dimension(zval *object, zval *offset, int
 }
 /* }}} */
 
-static inline void spl_fastarray_object_write_dimension_helper(spl_fastarray_object *intern, zval *offset, zval *value TSRMLS_DC) /* {{{ */
+static inline void spl_fixedarray_object_write_dimension_helper(spl_fixedarray_object *intern, zval *offset, zval *value TSRMLS_DC) /* {{{ */
 {
        long index;
 
@@ -401,11 +401,11 @@ static inline void spl_fastarray_object_write_dimension_helper(spl_fastarray_obj
 }
 /* }}} */
 
-static void spl_fastarray_object_write_dimension(zval *object, zval *offset, zval *value TSRMLS_DC) /* {{{ */
+static void spl_fixedarray_object_write_dimension(zval *object, zval *offset, zval *value TSRMLS_DC) /* {{{ */
 {
-       spl_fastarray_object *intern;
+       spl_fixedarray_object *intern;
 
-       intern = (spl_fastarray_object *)zend_object_store_get_object(object TSRMLS_CC);
+       intern = (spl_fixedarray_object *)zend_object_store_get_object(object TSRMLS_CC);
 
        if (intern->fptr_offset_set) {
                SEPARATE_ARG_IF_REF(offset);
@@ -416,11 +416,11 @@ static void spl_fastarray_object_write_dimension(zval *object, zval *offset, zva
                return;
        }
 
-       spl_fastarray_object_write_dimension_helper(intern, offset, value TSRMLS_CC);
+       spl_fixedarray_object_write_dimension_helper(intern, offset, value TSRMLS_CC);
 }
 /* }}} */
 
-static inline void spl_fastarray_object_unset_dimension_helper(spl_fastarray_object *intern, zval *offset TSRMLS_DC) /* {{{ */
+static inline void spl_fixedarray_object_unset_dimension_helper(spl_fixedarray_object *intern, zval *offset TSRMLS_DC) /* {{{ */
 {
        long index;
        
@@ -438,11 +438,11 @@ static inline void spl_fastarray_object_unset_dimension_helper(spl_fastarray_obj
 }
 /* }}} */
 
-static void spl_fastarray_object_unset_dimension(zval *object, zval *offset TSRMLS_DC) /* {{{ */
+static void spl_fixedarray_object_unset_dimension(zval *object, zval *offset TSRMLS_DC) /* {{{ */
 {
-       spl_fastarray_object *intern;
+       spl_fixedarray_object *intern;
 
-       intern = (spl_fastarray_object *)zend_object_store_get_object(object TSRMLS_CC);
+       intern = (spl_fixedarray_object *)zend_object_store_get_object(object TSRMLS_CC);
 
        if (intern->fptr_offset_del) {
                SEPARATE_ARG_IF_REF(offset);
@@ -451,12 +451,12 @@ static void spl_fastarray_object_unset_dimension(zval *object, zval *offset TSRM
                return;
        }
 
-       spl_fastarray_object_unset_dimension_helper(intern, offset TSRMLS_CC);
+       spl_fixedarray_object_unset_dimension_helper(intern, offset TSRMLS_CC);
 
 }
 /* }}} */
 
-static inline int spl_fastarray_object_has_dimension_helper(spl_fastarray_object *intern, zval *offset, int check_empty TSRMLS_DC) /* {{{ */
+static inline int spl_fixedarray_object_has_dimension_helper(spl_fixedarray_object *intern, zval *offset, int check_empty TSRMLS_DC) /* {{{ */
 {
        long index;
        int retval;
@@ -483,11 +483,11 @@ static inline int spl_fastarray_object_has_dimension_helper(spl_fastarray_object
 }
 /* }}} */
 
-static int spl_fastarray_object_has_dimension(zval *object, zval *offset, int check_empty TSRMLS_DC) /* {{{ */
+static int spl_fixedarray_object_has_dimension(zval *object, zval *offset, int check_empty TSRMLS_DC) /* {{{ */
 {
-       spl_fastarray_object *intern;
+       spl_fixedarray_object *intern;
 
-       intern = (spl_fastarray_object *)zend_object_store_get_object(object TSRMLS_CC);
+       intern = (spl_fixedarray_object *)zend_object_store_get_object(object TSRMLS_CC);
 
        if (intern->fptr_offset_get) {
                zval *rv;
@@ -503,15 +503,15 @@ static int spl_fastarray_object_has_dimension(zval *object, zval *offset, int ch
                return 0;
        }
 
-       return spl_fastarray_object_has_dimension_helper(intern, offset, check_empty TSRMLS_CC);
+       return spl_fixedarray_object_has_dimension_helper(intern, offset, check_empty TSRMLS_CC);
 }
 /* }}} */
 
-static int spl_fastarray_object_count_elements(zval *object, long *count TSRMLS_DC) /* {{{ */
+static int spl_fixedarray_object_count_elements(zval *object, long *count TSRMLS_DC) /* {{{ */
 {
-       spl_fastarray_object *intern;
+       spl_fixedarray_object *intern;
        
-       intern = (spl_fastarray_object *)zend_object_store_get_object(object TSRMLS_CC);
+       intern = (spl_fixedarray_object *)zend_object_store_get_object(object TSRMLS_CC);
        if (intern->array) {
                *count = intern->array->size;
        } else {
@@ -522,12 +522,12 @@ static int spl_fastarray_object_count_elements(zval *object, long *count TSRMLS_
 }
 /* }}} */
 
-/* {{{ proto void SplFastArray::__construct([int size])
+/* {{{ proto void SplFixedArray::__construct([int size])
 */
-SPL_METHOD(SplFastArray, __construct)
+SPL_METHOD(SplFixedArray, __construct)
 {
        zval *object = getThis();
-       spl_fastarray_object *intern;
+       spl_fixedarray_object *intern;
        long size = 0;
 
        if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &size)) {
@@ -539,30 +539,30 @@ SPL_METHOD(SplFastArray, __construct)
                return;
        }
 
-       intern = (spl_fastarray_object *)zend_object_store_get_object(object TSRMLS_CC);
+       intern = (spl_fixedarray_object *)zend_object_store_get_object(object TSRMLS_CC);
 
        if (intern->array) {
                /* called __construct() twice, bail out */
                return;
        }
 
-       intern->array = emalloc(sizeof(spl_fastarray));
-       spl_fastarray_init(intern->array, size TSRMLS_CC);
+       intern->array = emalloc(sizeof(spl_fixedarray));
+       spl_fixedarray_init(intern->array, size TSRMLS_CC);
 }
 /* }}} */
 
-/* {{{ proto int SplFastArray::count(void)
+/* {{{ proto int SplFixedArray::count(void)
 */
-SPL_METHOD(SplFastArray, count)
+SPL_METHOD(SplFixedArray, count)
 {
        zval *object = getThis();
-       spl_fastarray_object *intern;
+       spl_fixedarray_object *intern;
 
        if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "")) {
                return;
        }
 
-       intern = (spl_fastarray_object *)zend_object_store_get_object(object TSRMLS_CC);
+       intern = (spl_fixedarray_object *)zend_object_store_get_object(object TSRMLS_CC);
        if (intern->array) {
                RETURN_LONG(intern->array->size);
        }
@@ -570,18 +570,18 @@ SPL_METHOD(SplFastArray, count)
 }
 /* }}} */
 
-/* {{{ proto int SplFastArray::getSize(void)
+/* {{{ proto int SplFixedArray::getSize(void)
 */
-SPL_METHOD(SplFastArray, getSize)
+SPL_METHOD(SplFixedArray, getSize)
 {
        zval *object = getThis();
-       spl_fastarray_object *intern;
+       spl_fixedarray_object *intern;
 
        if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "")) {
                return;
        }
 
-       intern = (spl_fastarray_object *)zend_object_store_get_object(object TSRMLS_CC);
+       intern = (spl_fixedarray_object *)zend_object_store_get_object(object TSRMLS_CC);
        if (intern->array) {
                RETURN_LONG(intern->array->size);
        }
@@ -589,12 +589,12 @@ SPL_METHOD(SplFastArray, getSize)
 }
 /* }}} */
 
-/* {{{ proto bool SplFastArray::setSize(int size)
+/* {{{ proto bool SplFixedArray::setSize(int size)
 */
-SPL_METHOD(SplFastArray, setSize)
+SPL_METHOD(SplFixedArray, setSize)
 {
        zval *object = getThis();
-       spl_fastarray_object *intern;
+       spl_fixedarray_object *intern;
        long size;
 
        if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &size)) {
@@ -606,45 +606,45 @@ SPL_METHOD(SplFastArray, setSize)
                return;
        }
 
-       intern = (spl_fastarray_object *)zend_object_store_get_object(object TSRMLS_CC);
+       intern = (spl_fixedarray_object *)zend_object_store_get_object(object TSRMLS_CC);
        if (!intern->array) {
-               intern->array = ecalloc(1, sizeof(spl_fastarray));
+               intern->array = ecalloc(1, sizeof(spl_fixedarray));
        }
 
-       spl_fastarray_resize(intern->array, size TSRMLS_CC);
+       spl_fixedarray_resize(intern->array, size TSRMLS_CC);
        RETURN_TRUE;
 }
 /* }}} */
 
-/* {{{ proto bool SplFastArray::offsetExists(mixed $index) U
+/* {{{ proto bool SplFixedArray::offsetExists(mixed $index) U
  Returns whether the requested $index exists. */
-SPL_METHOD(SplFastArray, offsetExists)
+SPL_METHOD(SplFixedArray, offsetExists)
 {
        zval                  *zindex;
-       spl_fastarray_object  *intern;
+       spl_fixedarray_object  *intern;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &zindex) == FAILURE) {
                return;
        }
 
-       intern = (spl_fastarray_object *)zend_object_store_get_object(getThis() TSRMLS_CC);
+       intern = (spl_fixedarray_object *)zend_object_store_get_object(getThis() TSRMLS_CC);
 
-       RETURN_BOOL(spl_fastarray_object_has_dimension_helper(intern, zindex, 0 TSRMLS_CC));
+       RETURN_BOOL(spl_fixedarray_object_has_dimension_helper(intern, zindex, 0 TSRMLS_CC));
 } /* }}} */
 
-/* {{{ proto mixed SplFastArray::offsetGet(mixed $index) U
+/* {{{ proto mixed SplFixedArray::offsetGet(mixed $index) U
  Returns the value at the specified $index. */
-SPL_METHOD(SplFastArray, offsetGet)
+SPL_METHOD(SplFixedArray, offsetGet)
 {
        zval                  *zindex, **value_pp;
-       spl_fastarray_object  *intern;
+       spl_fixedarray_object  *intern;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &zindex) == FAILURE) {
                return;
        }
 
-       intern    = (spl_fastarray_object *)zend_object_store_get_object(getThis() TSRMLS_CC);
-       value_pp  = spl_fastarray_object_read_dimension_helper(intern, zindex TSRMLS_CC);
+       intern    = (spl_fixedarray_object *)zend_object_store_get_object(getThis() TSRMLS_CC);
+       value_pp  = spl_fixedarray_object_read_dimension_helper(intern, zindex TSRMLS_CC);
 
        if (value_pp) {
                RETURN_ZVAL(*value_pp, 1, 0);
@@ -652,41 +652,41 @@ SPL_METHOD(SplFastArray, offsetGet)
        RETURN_NULL();
 } /* }}} */
 
-/* {{{ proto void SplFastArray::offsetSet(mixed $index, mixed $newval) U
+/* {{{ proto void SplFixedArray::offsetSet(mixed $index, mixed $newval) U
  Sets the value at the specified $index to $newval. */
-SPL_METHOD(SplFastArray, offsetSet)
+SPL_METHOD(SplFixedArray, offsetSet)
 {
        zval                  *zindex, *value;
-       spl_fastarray_object  *intern;
+       spl_fixedarray_object  *intern;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz", &zindex, &value) == FAILURE) {
                return;
        }
 
-       intern = (spl_fastarray_object *)zend_object_store_get_object(getThis() TSRMLS_CC);
-       spl_fastarray_object_write_dimension_helper(intern, zindex, value TSRMLS_CC);
+       intern = (spl_fixedarray_object *)zend_object_store_get_object(getThis() TSRMLS_CC);
+       spl_fixedarray_object_write_dimension_helper(intern, zindex, value TSRMLS_CC);
 
 } /* }}} */
 
-/* {{{ proto void SplFastArray::offsetUnset(mixed $index) U
+/* {{{ proto void SplFixedArray::offsetUnset(mixed $index) U
  Unsets the value at the specified $index. */
-SPL_METHOD(SplFastArray, offsetUnset)
+SPL_METHOD(SplFixedArray, offsetUnset)
 {
        zval                  *zindex;
-       spl_fastarray_object  *intern;
+       spl_fixedarray_object  *intern;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &zindex) == FAILURE) {
                return;
        }
 
-       intern = (spl_fastarray_object *)zend_object_store_get_object(getThis() TSRMLS_CC);
-       spl_fastarray_object_unset_dimension_helper(intern, zindex TSRMLS_CC);
+       intern = (spl_fixedarray_object *)zend_object_store_get_object(getThis() TSRMLS_CC);
+       spl_fixedarray_object_unset_dimension_helper(intern, zindex TSRMLS_CC);
 
 } /* }}} */
 
-static void spl_fastarray_it_dtor(zend_object_iterator *iter TSRMLS_DC) /* {{{ */
+static void spl_fixedarray_it_dtor(zend_object_iterator *iter TSRMLS_DC) /* {{{ */
 {
-       spl_fastarray_it  *iterator = (spl_fastarray_it *)iter;
+       spl_fixedarray_it  *iterator = (spl_fixedarray_it *)iter;
 
        zend_user_it_invalidate_current(iter TSRMLS_CC);
        zval_ptr_dtor((zval**)&iterator->intern.it.data);
@@ -695,10 +695,10 @@ static void spl_fastarray_it_dtor(zend_object_iterator *iter TSRMLS_DC) /* {{{ *
 }
 /* }}} */
 
-static void spl_fastarray_it_rewind(zend_object_iterator *iter TSRMLS_DC) /* {{{ */
+static void spl_fixedarray_it_rewind(zend_object_iterator *iter TSRMLS_DC) /* {{{ */
 {
-       spl_fastarray_it     *iterator = (spl_fastarray_it *)iter;
-       spl_fastarray_object *intern   = iterator->object;
+       spl_fixedarray_it     *iterator = (spl_fixedarray_it *)iter;
+       spl_fixedarray_object *intern   = iterator->object;
        zval                 *object   = (zval *)&iterator->intern.it.data;
 
        if (intern->fptr_it_rewind) {
@@ -708,10 +708,10 @@ static void spl_fastarray_it_rewind(zend_object_iterator *iter TSRMLS_DC) /* {{{
 }
 /* }}} */
 
-static int spl_fastarray_it_valid(zend_object_iterator *iter TSRMLS_DC) /* {{{ */
+static int spl_fixedarray_it_valid(zend_object_iterator *iter TSRMLS_DC) /* {{{ */
 {
-       spl_fastarray_it     *iterator = (spl_fastarray_it *)iter;
-       spl_fastarray_object *intern   = iterator->object;
+       spl_fixedarray_it     *iterator = (spl_fixedarray_it *)iter;
+       spl_fixedarray_object *intern   = iterator->object;
        zval                 *object   = (zval *)&iterator->intern.it.data;
 
        if (intern->fptr_it_valid) {
@@ -734,11 +734,11 @@ static int spl_fastarray_it_valid(zend_object_iterator *iter TSRMLS_DC) /* {{{ *
 }
 /* }}} */
 
-static void spl_fastarray_it_get_current_data(zend_object_iterator *iter, zval ***data TSRMLS_DC) /* {{{ */
+static void spl_fixedarray_it_get_current_data(zend_object_iterator *iter, zval ***data TSRMLS_DC) /* {{{ */
 {
        zval                 *zindex;
-       spl_fastarray_it     *iterator = (spl_fastarray_it *)iter;
-       spl_fastarray_object *intern   = iterator->object;
+       spl_fixedarray_it     *iterator = (spl_fixedarray_it *)iter;
+       spl_fixedarray_object *intern   = iterator->object;
        zval                 *object   = (zval *)&iterator->intern.it.data;
 
        if (intern->fptr_it_current) {
@@ -758,7 +758,7 @@ static void spl_fastarray_it_get_current_data(zend_object_iterator *iter, zval *
        ALLOC_INIT_ZVAL(zindex);
        ZVAL_LONG(zindex, iterator->object->current);
 
-       *data = spl_fastarray_object_read_dimension_helper(intern, zindex TSRMLS_CC);
+       *data = spl_fixedarray_object_read_dimension_helper(intern, zindex TSRMLS_CC);
 
        if (*data == NULL) {
                *data = &EG(uninitialized_zval_ptr);
@@ -768,10 +768,10 @@ static void spl_fastarray_it_get_current_data(zend_object_iterator *iter, zval *
 }
 /* }}} */
 
-static int spl_fastarray_it_get_current_key(zend_object_iterator *iter, char **str_key, uint *str_key_len, ulong *int_key TSRMLS_DC) /* {{{ */
+static int spl_fixedarray_it_get_current_key(zend_object_iterator *iter, char **str_key, uint *str_key_len, ulong *int_key TSRMLS_DC) /* {{{ */
 {
-       spl_fastarray_it     *iterator = (spl_fastarray_it *)iter;
-       spl_fastarray_object *intern   = iterator->object;
+       spl_fixedarray_it     *iterator = (spl_fixedarray_it *)iter;
+       spl_fixedarray_object *intern   = iterator->object;
        zval                 *object   = (zval *)&iterator->intern.it.data;
 
        if (intern->fptr_it_key) {
@@ -793,10 +793,10 @@ static int spl_fastarray_it_get_current_key(zend_object_iterator *iter, char **s
 }
 /* }}} */
 
-static void spl_fastarray_it_move_forward(zend_object_iterator *iter TSRMLS_DC) /* {{{ */
+static void spl_fixedarray_it_move_forward(zend_object_iterator *iter TSRMLS_DC) /* {{{ */
 {
-       spl_fastarray_it     *iterator = (spl_fastarray_it *)iter;
-       spl_fastarray_object *intern   = iterator->object;
+       spl_fixedarray_it     *iterator = (spl_fixedarray_it *)iter;
+       spl_fixedarray_object *intern   = iterator->object;
        zval                 *object   = (zval *)&iterator->intern.it.data;
 
        if (intern->fptr_it_next) {
@@ -809,58 +809,58 @@ static void spl_fastarray_it_move_forward(zend_object_iterator *iter TSRMLS_DC)
 }
 /* }}} */
 
-/* {{{  proto int SplFastArray::key() U
+/* {{{  proto int SplFixedArray::key() U
    Return current array key */
-SPL_METHOD(SplFastArray, key)
+SPL_METHOD(SplFixedArray, key)
 {
-       spl_fastarray_object *intern = (spl_fastarray_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
+       spl_fixedarray_object *intern = (spl_fixedarray_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
 
        RETURN_LONG(intern->current);
 }
 /* }}} */
 
-/* {{{ proto void SplFastArray::next() U
+/* {{{ proto void SplFixedArray::next() U
    Move to next entry */
-SPL_METHOD(SplFastArray, next)
+SPL_METHOD(SplFixedArray, next)
 {
-       spl_fastarray_object *intern = (spl_fastarray_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
+       spl_fixedarray_object *intern = (spl_fixedarray_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
 
        intern->current++;
 }
 /* }}} */
 
-/* {{{ proto bool SplFastArray::valid() U
+/* {{{ proto bool SplFixedArray::valid() U
    Check whether the datastructure contains more entries */
-SPL_METHOD(SplFastArray, valid)
+SPL_METHOD(SplFixedArray, valid)
 {
-       spl_fastarray_object *intern = (spl_fastarray_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
+       spl_fixedarray_object *intern = (spl_fixedarray_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
 
        RETURN_BOOL(intern->current >= 0 && intern->array && intern->current < intern->array->size);
 }
 /* }}} */
 
-/* {{{ proto void SplFastArray::rewind() U
+/* {{{ proto void SplFixedArray::rewind() U
    Rewind the datastructure back to the start */
-SPL_METHOD(SplFastArray, rewind)
+SPL_METHOD(SplFixedArray, rewind)
 {
-       spl_fastarray_object *intern = (spl_fastarray_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
+       spl_fixedarray_object *intern = (spl_fixedarray_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
 
        intern->current = 0;
 }
 /* }}} */
 
-/* {{{ proto mixed|NULL SplFastArray::current() U
+/* {{{ proto mixed|NULL SplFixedArray::current() U
    Return current datastructure entry */
-SPL_METHOD(SplFastArray, current)
+SPL_METHOD(SplFixedArray, current)
 {
        zval                 *zindex, **value_pp;
-       spl_fastarray_object *intern  = (spl_fastarray_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
+       spl_fixedarray_object *intern  = (spl_fixedarray_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
 
 
        ALLOC_INIT_ZVAL(zindex);
        ZVAL_LONG(zindex, intern->current);
 
-       value_pp  = spl_fastarray_object_read_dimension_helper(intern, zindex TSRMLS_CC);
+       value_pp  = spl_fixedarray_object_read_dimension_helper(intern, zindex TSRMLS_CC);
 
        zval_ptr_dtor(&zindex);
 
@@ -872,19 +872,19 @@ SPL_METHOD(SplFastArray, current)
 /* }}} */
 
 /* iterator handler table */
-zend_object_iterator_funcs spl_fastarray_it_funcs = {
-       spl_fastarray_it_dtor,
-       spl_fastarray_it_valid,
-       spl_fastarray_it_get_current_data,
-       spl_fastarray_it_get_current_key,
-       spl_fastarray_it_move_forward,
-       spl_fastarray_it_rewind
+zend_object_iterator_funcs spl_fixedarray_it_funcs = {
+       spl_fixedarray_it_dtor,
+       spl_fixedarray_it_valid,
+       spl_fixedarray_it_get_current_data,
+       spl_fixedarray_it_get_current_key,
+       spl_fixedarray_it_move_forward,
+       spl_fixedarray_it_rewind
 };
 
-zend_object_iterator *spl_fastarray_get_iterator(zend_class_entry *ce, zval *object, int by_ref TSRMLS_DC) /* {{{ */
+zend_object_iterator *spl_fixedarray_get_iterator(zend_class_entry *ce, zval *object, int by_ref TSRMLS_DC) /* {{{ */
 {
-       spl_fastarray_it      *iterator;
-       spl_fastarray_object  *fastarray_object = (spl_fastarray_object*)zend_object_store_get_object(object TSRMLS_CC);
+       spl_fixedarray_it      *iterator;
+       spl_fixedarray_object  *fixedarray_object = (spl_fixedarray_object*)zend_object_store_get_object(object TSRMLS_CC);
 
        if (by_ref) {
                zend_throw_exception(spl_ce_RuntimeException, "An iterator cannot be used with foreach by reference", 0 TSRMLS_CC);
@@ -893,71 +893,71 @@ zend_object_iterator *spl_fastarray_get_iterator(zend_class_entry *ce, zval *obj
 
        Z_ADDREF_P(object);
 
-       iterator                     = emalloc(sizeof(spl_fastarray_it));
+       iterator                     = emalloc(sizeof(spl_fixedarray_it));
        iterator->intern.it.data     = (void*)object;
-       iterator->intern.it.funcs    = &spl_fastarray_it_funcs;
+       iterator->intern.it.funcs    = &spl_fixedarray_it_funcs;
        iterator->intern.ce          = ce;
        iterator->intern.value       = NULL;
-       iterator->object             = fastarray_object;
+       iterator->object             = fixedarray_object;
 
        return (zend_object_iterator*)iterator;
 }
 /* }}} */
 
 static
-ZEND_BEGIN_ARG_INFO_EX(arginfo_fastarray_offsetGet, 0, 0, 1)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_fixedarray_offsetGet, 0, 0, 1)
        ZEND_ARG_INFO(0, index)
 ZEND_END_ARG_INFO()
 
 static
-ZEND_BEGIN_ARG_INFO_EX(arginfo_fastarray_offsetSet, 0, 0, 2)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_fixedarray_offsetSet, 0, 0, 2)
        ZEND_ARG_INFO(0, index)
        ZEND_ARG_INFO(0, newval)
 ZEND_END_ARG_INFO()
 
 static
-ZEND_BEGIN_ARG_INFO(arginfo_fastarray_setSize, 0)
+ZEND_BEGIN_ARG_INFO(arginfo_fixedarray_setSize, 0)
        ZEND_ARG_INFO(0, value)
 ZEND_END_ARG_INFO()
 
-static zend_function_entry spl_funcs_SplFastArray[] = { /* {{{ */
-       SPL_ME(SplFastArray, __construct,     NULL, ZEND_ACC_PUBLIC)
-       SPL_ME(SplFastArray, count,           NULL,                           ZEND_ACC_PUBLIC)
-       SPL_ME(SplFastArray, getSize,         NULL,                           ZEND_ACC_PUBLIC)
-       SPL_ME(SplFastArray, setSize,         arginfo_fastarray_setSize,      ZEND_ACC_PUBLIC)
-       SPL_ME(SplFastArray, offsetExists,    arginfo_fastarray_offsetGet,    ZEND_ACC_PUBLIC)
-       SPL_ME(SplFastArray, offsetGet,       arginfo_fastarray_offsetGet,    ZEND_ACC_PUBLIC)
-       SPL_ME(SplFastArray, offsetSet,       arginfo_fastarray_offsetSet,    ZEND_ACC_PUBLIC)
-       SPL_ME(SplFastArray, offsetUnset,     arginfo_fastarray_offsetGet,    ZEND_ACC_PUBLIC)
-       SPL_ME(SplFastArray, rewind,          NULL,                           ZEND_ACC_PUBLIC)
-       SPL_ME(SplFastArray, current,         NULL,                           ZEND_ACC_PUBLIC)
-       SPL_ME(SplFastArray, key,             NULL,                           ZEND_ACC_PUBLIC)
-       SPL_ME(SplFastArray, next,            NULL,                           ZEND_ACC_PUBLIC)
-       SPL_ME(SplFastArray, valid,           NULL,                           ZEND_ACC_PUBLIC)
+static zend_function_entry spl_funcs_SplFixedArray[] = { /* {{{ */
+       SPL_ME(SplFixedArray, __construct,     NULL, ZEND_ACC_PUBLIC)
+       SPL_ME(SplFixedArray, count,           NULL,                           ZEND_ACC_PUBLIC)
+       SPL_ME(SplFixedArray, getSize,         NULL,                           ZEND_ACC_PUBLIC)
+       SPL_ME(SplFixedArray, setSize,         arginfo_fixedarray_setSize,      ZEND_ACC_PUBLIC)
+       SPL_ME(SplFixedArray, offsetExists,    arginfo_fixedarray_offsetGet,    ZEND_ACC_PUBLIC)
+       SPL_ME(SplFixedArray, offsetGet,       arginfo_fixedarray_offsetGet,    ZEND_ACC_PUBLIC)
+       SPL_ME(SplFixedArray, offsetSet,       arginfo_fixedarray_offsetSet,    ZEND_ACC_PUBLIC)
+       SPL_ME(SplFixedArray, offsetUnset,     arginfo_fixedarray_offsetGet,    ZEND_ACC_PUBLIC)
+       SPL_ME(SplFixedArray, rewind,          NULL,                           ZEND_ACC_PUBLIC)
+       SPL_ME(SplFixedArray, current,         NULL,                           ZEND_ACC_PUBLIC)
+       SPL_ME(SplFixedArray, key,             NULL,                           ZEND_ACC_PUBLIC)
+       SPL_ME(SplFixedArray, next,            NULL,                           ZEND_ACC_PUBLIC)
+       SPL_ME(SplFixedArray, valid,           NULL,                           ZEND_ACC_PUBLIC)
        {NULL, NULL, NULL}
 };
 /* }}} */
 
 /* {{{ PHP_MINIT_FUNCTION */
-PHP_MINIT_FUNCTION(spl_fastarray)
+PHP_MINIT_FUNCTION(spl_fixedarray)
 {
-       REGISTER_SPL_STD_CLASS_EX(SplFastArray, spl_fastarray_new, spl_funcs_SplFastArray);
-       memcpy(&spl_handler_SplFastArray, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
+       REGISTER_SPL_STD_CLASS_EX(SplFixedArray, spl_fixedarray_new, spl_funcs_SplFixedArray);
+       memcpy(&spl_handler_SplFixedArray, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
 
-       spl_handler_SplFastArray.clone_obj       = spl_fastarray_object_clone;
-       spl_handler_SplFastArray.count_elements  = spl_fastarray_object_count_elements;
-       spl_handler_SplFastArray.read_dimension  = spl_fastarray_object_read_dimension;
-       spl_handler_SplFastArray.write_dimension = spl_fastarray_object_write_dimension;
-       spl_handler_SplFastArray.unset_dimension = spl_fastarray_object_unset_dimension;
-       spl_handler_SplFastArray.has_dimension   = spl_fastarray_object_has_dimension;
-       spl_handler_SplFastArray.count_elements  = spl_fastarray_object_count_elements;
-       spl_handler_SplFastArray.get_debug_info  = spl_fastarray_object_get_debug_info;
+       spl_handler_SplFixedArray.clone_obj       = spl_fixedarray_object_clone;
+       spl_handler_SplFixedArray.count_elements  = spl_fixedarray_object_count_elements;
+       spl_handler_SplFixedArray.read_dimension  = spl_fixedarray_object_read_dimension;
+       spl_handler_SplFixedArray.write_dimension = spl_fixedarray_object_write_dimension;
+       spl_handler_SplFixedArray.unset_dimension = spl_fixedarray_object_unset_dimension;
+       spl_handler_SplFixedArray.has_dimension   = spl_fixedarray_object_has_dimension;
+       spl_handler_SplFixedArray.count_elements  = spl_fixedarray_object_count_elements;
+       spl_handler_SplFixedArray.get_debug_info  = spl_fixedarray_object_get_debug_info;
 
-       REGISTER_SPL_IMPLEMENTS(SplFastArray, Iterator);
-       REGISTER_SPL_IMPLEMENTS(SplFastArray, ArrayAccess);
-       REGISTER_SPL_IMPLEMENTS(SplFastArray, Countable);
+       REGISTER_SPL_IMPLEMENTS(SplFixedArray, Iterator);
+       REGISTER_SPL_IMPLEMENTS(SplFixedArray, ArrayAccess);
+       REGISTER_SPL_IMPLEMENTS(SplFixedArray, Countable);
 
-       spl_ce_SplFastArray->get_iterator = spl_fastarray_get_iterator;
+       spl_ce_SplFixedArray->get_iterator = spl_fixedarray_get_iterator;
 
        return SUCCESS;
 }
similarity index 89%
rename from ext/spl/spl_fastarray.h
rename to ext/spl/spl_fixedarray.h
index 9ec72808ac35b02c5d8df8432d63db407cf67500..10441942d2ebbab73963bbbbbae80672cb0a383a 100644 (file)
 
 /* $Id$ */
 
-#ifndef SPL_FASTARRAY_H
-#define SPL_FASTARRAY_H
+#ifndef SPL_FIXEDARRAY_H
+#define SPL_FIXEDARRAY_H
 
-PHPAPI zend_class_entry *spl_ce_SplFastArray;
+PHPAPI zend_class_entry *spl_ce_SplFixedArray;
 
-PHP_MINIT_FUNCTION(spl_fastarray);
+PHP_MINIT_FUNCTION(spl_fixedarray);
 
-#endif /* SPL_FASTARRAY_H */
+#endif /* SPL_FIXEDARRAY_H */
 
 /*
  * Local variables:
diff --git a/ext/spl/tests/fastarray_005.phpt b/ext/spl/tests/fastarray_005.phpt
deleted file mode 100644 (file)
index 0e6132a..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-SPL: FastArray: Trying to instantiate passing object to constructor parameter
---FILE--
-<?php
-
-$b = new stdClass;
-
-$a = new SplFastArray($b);
-
-?>
---EXPECTF--
-Warning: SplFastArray::__construct() expects parameter 1 to be long, object given in %s on line %d
diff --git a/ext/spl/tests/fastarray_009.phpt b/ext/spl/tests/fastarray_009.phpt
deleted file mode 100644 (file)
index daead11..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---TEST--
-SPL: FastArray: Trying to instantiate passing string to construtor parameter
---FILE--
-<?php
-
-$a = new SplFastArray('FOO');
-
-?>
---EXPECTF--
-Warning: SplFastArray::__construct() expects parameter 1 to be long, string given in %s on line %d
similarity index 94%
rename from ext/spl/tests/fastarray_001.phpt
rename to ext/spl/tests/fixedarray_001.phpt
index 06e82b7b277c572fd6562a4640671ea1cd461ff3..39e1bc9f6c365352d1fbfb8754e24699572f2154 100644 (file)
@@ -1,10 +1,10 @@
 --TEST--
-SPL: FastArray: std operations
+SPL: FixedArray: std operations
 --INI--
 allow_call_time_pass_reference=1
 --FILE--
 <?php
-$a = new SplFastArray(0);
+$a = new SplFixedArray(0);
 // errors
 try {
     $a[0] = "value1";
similarity index 96%
rename from ext/spl/tests/fastarray_002.phpt
rename to ext/spl/tests/fixedarray_002.phpt
index 4c5d54a367aae5bae84f4aff4dde188750542697..9b9c0ac315db0aa4dfca92779e4b1459d34cbe46 100644 (file)
@@ -1,10 +1,10 @@
 --TEST--
-SPL: FastArray: overloading
+SPL: FixedArray: overloading
 --INI--
 allow_call_time_pass_reference=1
 --FILE--
 <?php
-class A extends SplFastArray {
+class A extends SplFixedArray {
     public function count() {
         return 2;
     }
similarity index 93%
rename from ext/spl/tests/fastarray_003.phpt
rename to ext/spl/tests/fixedarray_003.phpt
index a397836a260b78f77a2be6062c44caf1af8e3b69..b6c5eb53e47711bf3b107efe9b263b1452984d02 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
-SPL: FastArray: Iterators
+SPL: FixedArray: Iterators
 --FILE--
 <?php
-class A extends SplFastArray {
+class A extends SplFixedArray {
 
     public function current() {
         echo "A::current\n";
@@ -27,7 +27,7 @@ class A extends SplFastArray {
 }
 
 echo "==Direct instance==\n";
-$a = new SplFastArray(5);
+$a = new SplFixedArray(5);
 $a[0] = "a";
 $a[1] = "c";
 $a[2] = "d";
similarity index 73%
rename from ext/spl/tests/fastarray_004.phpt
rename to ext/spl/tests/fixedarray_004.phpt
index 1ffbeb958a9048170ccf8b13ed62468136681d77..cb62e0c2c9afb8d266609da59b3dbf23f54e6daf 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
-SPL: FastArray: adding new elements
+SPL: FixedArray: adding new elements
 --FILE--
 <?php
 
-$a = new SplFastArray(10);
+$a = new SplFixedArray(10);
 
 try {
        $a[] = 1;
diff --git a/ext/spl/tests/fixedarray_005.phpt b/ext/spl/tests/fixedarray_005.phpt
new file mode 100644 (file)
index 0000000..9ccc693
--- /dev/null
@@ -0,0 +1,12 @@
+--TEST--
+SPL: FixedArray: Trying to instantiate passing object to constructor parameter
+--FILE--
+<?php
+
+$b = new stdClass;
+
+$a = new SplFixedArray($b);
+
+?>
+--EXPECTF--
+Warning: SplFixedArray::__construct() expects parameter 1 to be long, object given in %s on line %d
similarity index 77%
rename from ext/spl/tests/fastarray_006.phpt
rename to ext/spl/tests/fixedarray_006.phpt
index f9a4e59616b7c92b447322aac6baedc2589b4718..8641821ae31404e0a7ef860860390fd3c9729550 100644 (file)
@@ -1,10 +1,10 @@
 --TEST--
-SPL: FastArray: Assigning objects
+SPL: FixedArray: Assigning objects
 --FILE--
 <?php
 
 $b = 10000;
-$a = new SplFastArray($b);
+$a = new SplFixedArray($b);
 
 try {
        for ($i = 0; $i < 100; $i++) {
similarity index 74%
rename from ext/spl/tests/fastarray_007.phpt
rename to ext/spl/tests/fixedarray_007.phpt
index 4cc46fee921ed0d9f6cb49261606a4e2ea44a153..308ce315a5933296ec70bf018e56eb2cc78c7980 100644 (file)
@@ -1,10 +1,10 @@
 --TEST--
-SPL: FastArray: Assigning the itself object
+SPL: FixedArray: Assigning the itself object
 --FILE--
 <?php
 
 $b = 10;
-$a = new SplFastArray($b);
+$a = new SplFixedArray($b);
 
 try {
        $a[1] = $a;
similarity index 72%
rename from ext/spl/tests/fastarray_008.phpt
rename to ext/spl/tests/fixedarray_008.phpt
index 05986a2cfec2dce56fe45d420a506f02a8ae2c8f..8775d61fff41da9125697155262bdbd4c34271a7 100644 (file)
@@ -1,10 +1,10 @@
 --TEST--
-SPL: FastArray: Assigning the itself object testing the reference
+SPL: FixedArray: Assigning the itself object testing the reference
 --FILE--
 <?php
 
 $b = 3;
-$a = new SplFastArray($b);
+$a = new SplFixedArray($b);
 
 $a[0] = 1;
 $a[1] = 2;
diff --git a/ext/spl/tests/fixedarray_009.phpt b/ext/spl/tests/fixedarray_009.phpt
new file mode 100644 (file)
index 0000000..936d210
--- /dev/null
@@ -0,0 +1,10 @@
+--TEST--
+SPL: FixedArray: Trying to instantiate passing string to construtor parameter
+--FILE--
+<?php
+
+$a = new SplFixedArray('FOO');
+
+?>
+--EXPECTF--
+Warning: SplFixedArray::__construct() expects parameter 1 to be long, string given in %s on line %d
similarity index 58%
rename from ext/spl/tests/fastarray_010.phpt
rename to ext/spl/tests/fixedarray_010.phpt
index dcb2e81b1b093ba3f3fb769bbaf95c35b5b7ad11..27af3a83a14fa2e1d9b77d3f67c90fb29da1e8c6 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
-SPL: FastArray: Setting size to 0
+SPL: FixedArray: Setting size to 0
 --FILE--
 <?php
 
-$a = new SplFastArray(1);
+$a = new SplFixedArray(1);
 
 $a[0] = 1;
 
similarity index 51%
rename from ext/spl/tests/fastarray_011.phpt
rename to ext/spl/tests/fixedarray_011.phpt
index 746e05f24e6078628b7d463eed814634161e2e48..eddf320fcc3e9222b10710098db4f117591bc58a 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
-SPL: FastArray: Testing setSize() with NULL
+SPL: FixedArray: Testing setSize() with NULL
 --FILE--
 <?php
 
-$a = new SplFastArray(100);
+$a = new SplFixedArray(100);
 
 $a->setSize(NULL);
 
similarity index 63%
rename from ext/spl/tests/fastarray_012.phpt
rename to ext/spl/tests/fixedarray_012.phpt
index d5592f1dbcb1dc6de704de32da59c6554b8b7c1e..3461b3a9b5f720d30fc167cb1bd61ded80f8a1b2 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
-SPL: FastArray: Assigning the object to another variable using []
+SPL: FixedArray: Assigning the object to another variable using []
 --FILE--
 <?php
 
-$a = new SplFastArray(100);
+$a = new SplFixedArray(100);
 
 try {
        $b = &$a[];
similarity index 57%
rename from ext/spl/tests/fastarray_013.phpt
rename to ext/spl/tests/fixedarray_013.phpt
index edc53d9f45dc5e27a1929a88fd6ce362364b9c58..52ae3c161ec394bcd3065ae6e7c25b006f964b26 100644 (file)
@@ -1,12 +1,12 @@
 --TEST--
-SPL: FastArray: Passing the object using [] as parameter
+SPL: FixedArray: Passing the object using [] as parameter
 --FILE--
 <?php
 
-$a = new SplFastArray(100);
+$a = new SplFixedArray(100);
 
 
-function test(SplFastArray &$arr) {
+function test(SplFixedArray &$arr) {
        print "ok\n";
 }
 
similarity index 63%
rename from ext/spl/tests/fastarray_014.phpt
rename to ext/spl/tests/fixedarray_014.phpt
index dfb45b37b7d78b1cf69f3098a2ec256cd70aa1b9..de8e214dc05b154fa9e988c9a8c86a83d080288e 100644 (file)
@@ -1,10 +1,10 @@
 --TEST--
-SPL: FastArray: Trying to access inexistent item
+SPL: FixedArray: Trying to access inexistent item
 --FILE--
 <?php
 
 try {
-       $a = new SplFastArray(NULL);
+       $a = new SplFixedArray(NULL);
        echo $a[0]++;
 } catch (Exception $e) {
        echo $e->getMessage();
similarity index 79%
rename from ext/spl/tests/fastarray_015.phpt
rename to ext/spl/tests/fixedarray_015.phpt
index 9f34b63efc3d58357bbea204f86f702376eebec5..60fc4d12fd552f1d0b27b57c699321668c5ad141 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
-SPL: FastArray: accessing uninitialized array
+SPL: FixedArray: accessing uninitialized array
 --FILE--
 <?php
 
-$a = new SplFastArray('');
+$a = new SplFixedArray('');
 
 try {
        var_dump($a[1]);
@@ -40,7 +40,7 @@ try {
 echo "Done\n";
 ?>
 --EXPECTF--    
-Warning: SplFastArray::__construct() expects parameter 1 to be long, string given in %s on line %d
+Warning: SplFixedArray::__construct() expects parameter 1 to be long, string given in %s on line %d
 Index invalid or out of range
 Index invalid or out of range
 Index invalid or out of range