]> granicus.if.org Git - php/commitdiff
HASH_KEY_NON_EXISTANT fix
authorVeres Lajos <vlajos@gmail.com>
Mon, 8 Jul 2013 21:09:06 +0000 (22:09 +0100)
committerStanislav Malyshev <stas@php.net>
Mon, 22 Jul 2013 03:09:53 +0000 (20:09 -0700)
24 files changed:
Zend/zend_hash.c
Zend/zend_hash.h
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
ext/com_dotnet/com_variant.c
ext/com_dotnet/com_wrapper.c
ext/hash/hash.c
ext/intl/collator/collator_convert.c
ext/json/json.c
ext/pcntl/pcntl.c
ext/pgsql/pgsql.c
ext/phar/dirstream.c
ext/phar/phar.c
ext/phar/stream.c
ext/phar/util.c
ext/session/php_session.h
ext/standard/array.c
ext/standard/http.c
ext/standard/proc_open.c
ext/standard/streamsfuncs.c
ext/standard/user_filters.c
ext/standard/var.c
ext/xmlrpc/xmlrpc-epi-php.c
sapi/fpm/fpm/fastcgi.c

index 20896abf3ee878471b933ec51376cafccbec14ba..96c3f3d7b57d318e816b742cd0c1370ee134bbf2 100644 (file)
@@ -1168,7 +1168,7 @@ ZEND_API int zend_hash_get_current_key_ex(const HashTable *ht, char **str_index,
                        return HASH_KEY_IS_LONG;
                }
        }
-       return HASH_KEY_NON_EXISTANT;
+       return HASH_KEY_NON_EXISTENT;
 }
 
 ZEND_API void zend_hash_get_current_key_zval_ex(const HashTable *ht, zval *key, HashPosition *pos) {
@@ -1205,7 +1205,7 @@ ZEND_API int zend_hash_get_current_key_type_ex(HashTable *ht, HashPosition *pos)
                        return HASH_KEY_IS_LONG;
                }
        }
-       return HASH_KEY_NON_EXISTANT;
+       return HASH_KEY_NON_EXISTENT;
 }
 
 
index a0c147f39782afdcdaa7fcbff045d690d8ea978e..e6306bff028eade9fc90d61839c36abbe72771e3 100644 (file)
@@ -27,7 +27,7 @@
 
 #define HASH_KEY_IS_STRING 1
 #define HASH_KEY_IS_LONG 2
-#define HASH_KEY_NON_EXISTANT 3
+#define HASH_KEY_NON_EXISTENT 3
 
 #define HASH_UPDATE            (1<<0)
 #define HASH_ADD                       (1<<1)
@@ -172,7 +172,7 @@ ZEND_API ulong zend_hash_next_free_element(const HashTable *ht);
 
 /* traversing */
 #define zend_hash_has_more_elements_ex(ht, pos) \
-       (zend_hash_get_current_key_type_ex(ht, pos) == HASH_KEY_NON_EXISTANT ? FAILURE : SUCCESS)
+       (zend_hash_get_current_key_type_ex(ht, pos) == HASH_KEY_NON_EXISTENT ? FAILURE : SUCCESS)
 ZEND_API int zend_hash_move_forward_ex(HashTable *ht, HashPosition *pos);
 ZEND_API int zend_hash_move_backwards_ex(HashTable *ht, HashPosition *pos);
 ZEND_API int zend_hash_get_current_key_ex(const HashTable *ht, char **str_index, uint *str_length, ulong *num_index, zend_bool duplicate, HashPosition *pos);
index edb52bc4e40c468a326e5b6e6431fd208104ead1..47afabe48bacd888c775a56d13953fb9d89bd66e 100644 (file)
@@ -4211,7 +4211,7 @@ ZEND_VM_HANDLER(77, ZEND_FE_RESET, CONST|TMP|VAR|CV, ANY)
                                zend_uchar key_type;
 
                                key_type = zend_hash_get_current_key_ex(fe_ht, &str_key, &str_key_len, &int_key, 0, NULL);
-                               if (key_type != HASH_KEY_NON_EXISTANT &&
+                               if (key_type != HASH_KEY_NON_EXISTENT &&
                                        (key_type == HASH_KEY_IS_LONG ||
                                     zend_check_property_access(zobj, str_key, str_key_len-1 TSRMLS_CC) == SUCCESS)) {
                                        break;
index f7d73017cd960530a3646923ae5d407ee150163f..8ab23adf9bd5bbec8d691237e75caf890dec9032 100644 (file)
@@ -2880,7 +2880,7 @@ static int ZEND_FASTCALL  ZEND_FE_RESET_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_A
                                zend_uchar key_type;
 
                                key_type = zend_hash_get_current_key_ex(fe_ht, &str_key, &str_key_len, &int_key, 0, NULL);
-                               if (key_type != HASH_KEY_NON_EXISTANT &&
+                               if (key_type != HASH_KEY_NON_EXISTENT &&
                                        (key_type == HASH_KEY_IS_LONG ||
                                     zend_check_property_access(zobj, str_key, str_key_len-1 TSRMLS_CC) == SUCCESS)) {
                                        break;
@@ -8206,7 +8206,7 @@ static int ZEND_FASTCALL  ZEND_FE_RESET_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARG
                                zend_uchar key_type;
 
                                key_type = zend_hash_get_current_key_ex(fe_ht, &str_key, &str_key_len, &int_key, 0, NULL);
-                               if (key_type != HASH_KEY_NON_EXISTANT &&
+                               if (key_type != HASH_KEY_NON_EXISTENT &&
                                        (key_type == HASH_KEY_IS_LONG ||
                                     zend_check_property_access(zobj, str_key, str_key_len-1 TSRMLS_CC) == SUCCESS)) {
                                        break;
@@ -13544,7 +13544,7 @@ static int ZEND_FASTCALL  ZEND_FE_RESET_SPEC_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARG
                                zend_uchar key_type;
 
                                key_type = zend_hash_get_current_key_ex(fe_ht, &str_key, &str_key_len, &int_key, 0, NULL);
-                               if (key_type != HASH_KEY_NON_EXISTANT &&
+                               if (key_type != HASH_KEY_NON_EXISTENT &&
                                        (key_type == HASH_KEY_IS_LONG ||
                                     zend_check_property_access(zobj, str_key, str_key_len-1 TSRMLS_CC) == SUCCESS)) {
                                        break;
@@ -31175,7 +31175,7 @@ static int ZEND_FASTCALL  ZEND_FE_RESET_SPEC_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS
                                zend_uchar key_type;
 
                                key_type = zend_hash_get_current_key_ex(fe_ht, &str_key, &str_key_len, &int_key, 0, NULL);
-                               if (key_type != HASH_KEY_NON_EXISTANT &&
+                               if (key_type != HASH_KEY_NON_EXISTENT &&
                                        (key_type == HASH_KEY_IS_LONG ||
                                     zend_check_property_access(zobj, str_key, str_key_len-1 TSRMLS_CC) == SUCCESS)) {
                                        break;
index 556f356b9772d14f29e236656734605df7176dba..e153d358047153084fc4c4c284c6f28767e11513 100644 (file)
@@ -53,7 +53,7 @@ static void safe_array_from_zval(VARIANT *v, zval *z, int codepage TSRMLS_DC)
 
                if (HASH_KEY_IS_STRING == keytype) {
                        goto bogus;
-               } else if (HASH_KEY_NON_EXISTANT == keytype) {
+               } else if (HASH_KEY_NON_EXISTENT == keytype) {
                        break;
                }
                if (intindex > max_index) {
index 597b0599510f14bcde1d7ac171b75e449145f040..355779e4ad97553d45609f7d765a91e51fab5610 100644 (file)
@@ -467,7 +467,7 @@ static void generate_dispids(php_dispatchex *disp TSRMLS_DC)
        /* properties */
        if (Z_OBJPROP_P(disp->object)) {
                zend_hash_internal_pointer_reset_ex(Z_OBJPROP_P(disp->object), &pos);
-               while (HASH_KEY_NON_EXISTANT != (keytype =
+               while (HASH_KEY_NON_EXISTENT != (keytype =
                                zend_hash_get_current_key_ex(Z_OBJPROP_P(disp->object), &name,
                                &namelen, &pid, 0, &pos))) {
                        char namebuf[32];
@@ -498,7 +498,7 @@ static void generate_dispids(php_dispatchex *disp TSRMLS_DC)
        /* functions */
        if (Z_OBJCE_P(disp->object)) {
                zend_hash_internal_pointer_reset_ex(&Z_OBJCE_P(disp->object)->function_table, &pos);
-               while (HASH_KEY_NON_EXISTANT != (keytype =
+               while (HASH_KEY_NON_EXISTENT != (keytype =
                                zend_hash_get_current_key_ex(&Z_OBJCE_P(disp->object)->function_table,
                                &name, &namelen, &pid, 0, &pos))) {
 
@@ -598,7 +598,7 @@ PHP_COM_DOTNET_API IDispatch *php_com_wrapper_export_as_sink(zval *val, GUID *si
        zend_hash_init(disp->name_to_dispid, 0, NULL, ZVAL_PTR_DTOR, 0);
        
        zend_hash_internal_pointer_reset_ex(id_to_name, &pos);
-       while (HASH_KEY_NON_EXISTANT != (keytype =
+       while (HASH_KEY_NON_EXISTENT != (keytype =
                                zend_hash_get_current_key_ex(id_to_name, &name, &namelen, &pid, 0, &pos))) {
 
                if (keytype == HASH_KEY_IS_LONG) {
index 9cede1412525cf97125aeb0c6424a685d6792ea0..117221484e363cd922ed139cc1ecfa4500201a70 100644 (file)
@@ -597,7 +597,7 @@ PHP_FUNCTION(hash_algos)
 
        array_init(return_value);
        for(zend_hash_internal_pointer_reset_ex(&php_hash_hashtable, &pos);
-               (type = zend_hash_get_current_key_ex(&php_hash_hashtable, &str, &str_len, &idx, 0, &pos)) != HASH_KEY_NON_EXISTANT;
+               (type = zend_hash_get_current_key_ex(&php_hash_hashtable, &str, &str_len, &idx, 0, &pos)) != HASH_KEY_NON_EXISTENT;
                zend_hash_move_forward_ex(&php_hash_hashtable, &pos)) {
                add_next_index_stringl(return_value, str, str_len-1, 1);
        }
@@ -1042,7 +1042,7 @@ PHP_MINFO_FUNCTION(hash)
        long type;
 
        for(zend_hash_internal_pointer_reset_ex(&php_hash_hashtable, &pos);
-               (type = zend_hash_get_current_key_ex(&php_hash_hashtable, &str, NULL, &idx, 0, &pos)) != HASH_KEY_NON_EXISTANT;
+               (type = zend_hash_get_current_key_ex(&php_hash_hashtable, &str, NULL, &idx, 0, &pos)) != HASH_KEY_NON_EXISTENT;
                zend_hash_move_forward_ex(&php_hash_hashtable, &pos)) {
                s += slprintf(s, e - s, "%s ", str);
        }
index e989d4c65a2d4a4396f4a0d3222e1218c8b342cc..2a3ac10fbf004ada76e2794c5adeee20368ba4b6 100644 (file)
@@ -139,7 +139,7 @@ void collator_convert_hash_from_utf8_to_utf16( HashTable* hash, UErrorCode* stat
 
        zend_hash_internal_pointer_reset( hash );
        while( ( hashKeyType = zend_hash_get_current_key( hash, &hashKey, &hashIndex, 0 ) )
-                       != HASH_KEY_NON_EXISTANT )
+                       != HASH_KEY_NON_EXISTENT )
        {
                /* Convert current hash item from UTF-8 to UTF-16LE. */
                collator_convert_hash_item_from_utf8_to_utf16(
@@ -164,7 +164,7 @@ void collator_convert_hash_from_utf16_to_utf8( HashTable* hash, UErrorCode* stat
 
        zend_hash_internal_pointer_reset( hash );
        while( ( hashKeyType = zend_hash_get_current_key( hash, &hashKey, &hashIndex, 0 ) )
-                       != HASH_KEY_NON_EXISTANT )
+                       != HASH_KEY_NON_EXISTENT )
        {
                /* Convert current hash item from UTF-16LE to UTF-8. */
                collator_convert_hash_item_from_utf16_to_utf8(
index 53608412f5a162f805dd74ba3bf68cd8d17dad49..782375e3717ccdfb5e68ba7c0f8e9486005628ea 100644 (file)
@@ -185,7 +185,7 @@ static int json_determine_array_type(zval **val TSRMLS_DC) /* {{{ */
                idx = 0;
                for (;; zend_hash_move_forward_ex(myht, &pos)) {
                        i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
-                       if (i == HASH_KEY_NON_EXISTANT) {
+                       if (i == HASH_KEY_NON_EXISTENT) {
                                break;
                        }
 
@@ -271,7 +271,7 @@ static void json_encode_array(smart_str *buf, zval **val, int options TSRMLS_DC)
                zend_hash_internal_pointer_reset_ex(myht, &pos);
                for (;; zend_hash_move_forward_ex(myht, &pos)) {
                        i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
-                       if (i == HASH_KEY_NON_EXISTANT)
+                       if (i == HASH_KEY_NON_EXISTENT)
                                break;
 
                        if (zend_hash_get_current_data_ex(myht, (void **) &data, &pos) == SUCCESS) {
index abe6b64aca528506ab84bcfaccb2da326bff8705..b66f4722e8108e7d87ed4eb996cc14f8b2d6dbdf 100644 (file)
@@ -795,7 +795,7 @@ PHP_FUNCTION(pcntl_exec)
                                        snprintf(key, 100, "%ld", key_num);
                                        key_length = strlen(key);
                                        break;
-                               case HASH_KEY_NON_EXISTANT:
+                               case HASH_KEY_NON_EXISTENT:
                                        pair--;
                                        continue;
                        }
index 128c2894f80ba77a2b274a3b462db5483bc59078..3a17b8c35765aa14c8f57f3f71576f9d0746c316 100644 (file)
@@ -5338,7 +5338,7 @@ PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, con
                skip_field = 0;
                new_val = NULL;
                
-               if ((key_type = zend_hash_get_current_key_ex(Z_ARRVAL_P(values), &field, &field_len, &num_idx, 0, &pos)) == HASH_KEY_NON_EXISTANT) {
+               if ((key_type = zend_hash_get_current_key_ex(Z_ARRVAL_P(values), &field, &field_len, &num_idx, 0, &pos)) == HASH_KEY_NON_EXISTENT) {
                        php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to get array key type");
                        err = 1;
                }
@@ -5346,7 +5346,7 @@ PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, con
                        php_error_docref(NULL TSRMLS_CC, E_WARNING, "Accepts only string key for values");
                        err = 1;
                }
-               if (!err && key_type == HASH_KEY_NON_EXISTANT) {
+               if (!err && key_type == HASH_KEY_NON_EXISTENT) {
                        php_error_docref(NULL TSRMLS_CC, E_WARNING, "Accepts only string key for values");
                        err = 1;
                }
@@ -6049,7 +6049,7 @@ PHP_PGSQL_API int php_pgsql_insert(PGconn *pg_link, const char *table, zval *var
        
        zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(var_array), &pos);
        while ((key_type = zend_hash_get_current_key_ex(Z_ARRVAL_P(var_array), &fld,
-                                       &fld_len, &num_idx, 0, &pos)) != HASH_KEY_NON_EXISTANT) {
+                                       &fld_len, &num_idx, 0, &pos)) != HASH_KEY_NON_EXISTENT) {
                if (key_type == HASH_KEY_IS_LONG) {
                        php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Expects associative array for values to be inserted");
                        goto cleanup;
index 277d058ea6ce8d58deee20623b52a932a4086cdb..c29ca9d9683d52fe4850e75b7dfcef84d51b5c43 100644 (file)
@@ -103,7 +103,7 @@ static size_t phar_dir_read(php_stream *stream, char *buf, size_t count TSRMLS_D
                return 0;
        }
 
-       if (HASH_KEY_NON_EXISTANT == zend_hash_get_current_key_ex(data, &key, &keylen, &unused, 0, NULL)) {
+       if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(data, &key, &keylen, &unused, 0, NULL)) {
                return 0;
        }
 
@@ -211,7 +211,7 @@ static php_stream *phar_make_dirstream(char *dir, HashTable *manifest TSRMLS_DC)
        zend_hash_internal_pointer_reset(manifest);
 
        while (FAILURE != zend_hash_has_more_elements(manifest)) {
-               if (HASH_KEY_NON_EXISTANT == zend_hash_get_current_key_ex(manifest, &key, &keylen, &unused, 0, NULL)) {
+               if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(manifest, &key, &keylen, &unused, 0, NULL)) {
                        break;
                }
 
@@ -403,7 +403,7 @@ php_stream *phar_wrapper_open_dir(php_stream_wrapper *wrapper, char *path, char
                /* search for directory */
                zend_hash_internal_pointer_reset(&phar->manifest);
                while (FAILURE != zend_hash_has_more_elements(&phar->manifest)) {
-                       if (HASH_KEY_NON_EXISTANT != 
+                       if (HASH_KEY_NON_EXISTENT != 
                                        zend_hash_get_current_key_ex(
                                                &phar->manifest, &key, &keylen, &unused, 0, NULL)) {
                                PHAR_STR(key, str_key);
@@ -637,7 +637,7 @@ int phar_wrapper_rmdir(php_stream_wrapper *wrapper, char *url, int options, php_
 
        if (!entry->is_deleted) {
                for (zend_hash_internal_pointer_reset(&phar->manifest);
-               HASH_KEY_NON_EXISTANT != zend_hash_get_current_key_ex(&phar->manifest, &key, &key_len, &unused, 0, NULL);
+               HASH_KEY_NON_EXISTENT != zend_hash_get_current_key_ex(&phar->manifest, &key, &key_len, &unused, 0, NULL);
                zend_hash_move_forward(&phar->manifest)) {
 
                        PHAR_STR(key, str_key);
@@ -658,7 +658,7 @@ int phar_wrapper_rmdir(php_stream_wrapper *wrapper, char *url, int options, php_
                }
 
                for (zend_hash_internal_pointer_reset(&phar->virtual_dirs);
-                       HASH_KEY_NON_EXISTANT != zend_hash_get_current_key_ex(&phar->virtual_dirs, &key, &key_len, &unused, 0, NULL);
+                       HASH_KEY_NON_EXISTENT != zend_hash_get_current_key_ex(&phar->virtual_dirs, &key, &key_len, &unused, 0, NULL);
                        zend_hash_move_forward(&phar->virtual_dirs)) {
        
                        PHAR_STR(key, str_key);
index c5042cc34acebcc0926625b57dff03deebbe6472..638c1ef83a3d528adf2022560462bfa584ab0cb7 100644 (file)
@@ -1964,7 +1964,7 @@ woohoo:
                        zend_hash_internal_pointer_reset(&(PHAR_GLOBALS->phar_fname_map));
 
                        while (FAILURE != zend_hash_has_more_elements(&(PHAR_GLOBALS->phar_fname_map))) {
-                               if (HASH_KEY_NON_EXISTANT == zend_hash_get_current_key_ex(&(PHAR_GLOBALS->phar_fname_map), &key, &keylen, &unused, 0, NULL)) {
+                               if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(&(PHAR_GLOBALS->phar_fname_map), &key, &keylen, &unused, 0, NULL)) {
                                        break;
                                }
 
@@ -1994,7 +1994,7 @@ woohoo:
                                zend_hash_internal_pointer_reset(&cached_phars);
 
                                while (FAILURE != zend_hash_has_more_elements(&cached_phars)) {
-                                       if (HASH_KEY_NON_EXISTANT == zend_hash_get_current_key_ex(&cached_phars, &key, &keylen, &unused, 0, NULL)) {
+                                       if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(&cached_phars, &key, &keylen, &unused, 0, NULL)) {
                                                break;
                                        }
 
index 924138d8faaa0532137a4707a1a24914fc832487..401d81e109bcb3d17e4ebf291e1e81e020e2bfd7 100644 (file)
@@ -635,7 +635,7 @@ static int phar_wrapper_stat(php_stream_wrapper *wrapper, char *url, int flags,
 
                zend_hash_internal_pointer_reset_ex(&phar->mounted_dirs, &pos);
                while (FAILURE != zend_hash_has_more_elements_ex(&phar->mounted_dirs, &pos)) {
-                       if (HASH_KEY_NON_EXISTANT == zend_hash_get_current_key_ex(&phar->mounted_dirs, &key, &keylen, &unused, 0, &pos)) {
+                       if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(&phar->mounted_dirs, &key, &keylen, &unused, 0, &pos)) {
                                break;
                        }
                        PHAR_STR(key, str_key);
@@ -918,7 +918,7 @@ static int phar_wrapper_rename(php_stream_wrapper *wrapper, char *url_from, char
                uint to_len = strlen(resource_to->path+1);
 
                for (zend_hash_internal_pointer_reset(&phar->manifest);
-                       HASH_KEY_NON_EXISTANT != (key_type = zend_hash_get_current_key_ex(&phar->manifest, &key, &key_len, &unused, 0, NULL)) &&
+                       HASH_KEY_NON_EXISTENT != (key_type = zend_hash_get_current_key_ex(&phar->manifest, &key, &key_len, &unused, 0, NULL)) &&
                        SUCCESS == zend_hash_get_current_data(&phar->manifest, (void **) &entry);
                        zend_hash_move_forward(&phar->manifest)) {
 
@@ -952,7 +952,7 @@ static int phar_wrapper_rename(php_stream_wrapper *wrapper, char *url_from, char
                }
 
                for (zend_hash_internal_pointer_reset(&phar->virtual_dirs);
-                       HASH_KEY_NON_EXISTANT != (key_type = zend_hash_get_current_key_ex(&phar->virtual_dirs, &key, &key_len, &unused, 0, NULL));
+                       HASH_KEY_NON_EXISTENT != (key_type = zend_hash_get_current_key_ex(&phar->virtual_dirs, &key, &key_len, &unused, 0, NULL));
                        zend_hash_move_forward(&phar->virtual_dirs)) {
 
                        PHAR_STR(key, str_key);
@@ -979,7 +979,7 @@ static int phar_wrapper_rename(php_stream_wrapper *wrapper, char *url_from, char
                }
 
                for (zend_hash_internal_pointer_reset(&phar->mounted_dirs);
-                       HASH_KEY_NON_EXISTANT != (key_type = zend_hash_get_current_key_ex(&phar->mounted_dirs, &key, &key_len, &unused, 0, NULL)) &&
+                       HASH_KEY_NON_EXISTENT != (key_type = zend_hash_get_current_key_ex(&phar->mounted_dirs, &key, &key_len, &unused, 0, NULL)) &&
                        SUCCESS == zend_hash_get_current_data(&phar->mounted_dirs, (void **) &entry);
                        zend_hash_move_forward(&phar->mounted_dirs)) {
 
index 898d8bd4b2146e3b92b759c3d8f667ea0a8cccda..8348a47874eab369f3d79ab67bb78a08211b21ce 100644 (file)
@@ -1554,7 +1554,7 @@ phar_entry_info *phar_get_entry_info_dir(phar_archive_data *phar, char *path, in
 
                zend_hash_internal_pointer_reset(&phar->mounted_dirs);
                while (FAILURE != zend_hash_has_more_elements(&phar->mounted_dirs)) {
-                       if (HASH_KEY_NON_EXISTANT == zend_hash_get_current_key_ex(&phar->mounted_dirs, &key, &keylen, &unused, 0, NULL)) {
+                       if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key_ex(&phar->mounted_dirs, &key, &keylen, &unused, 0, NULL)) {
                                break;
                        }
 
index 1dd5b1a1a613e5e7cd0f8378c743cd54266b24b1..b28c2b4c28e1fb116c486cf5eb72667952350870 100644 (file)
@@ -254,7 +254,7 @@ PHPAPI const ps_serializer *_php_find_ps_serializer(char *name TSRMLS_DC);
                int key_type;                                                                                           \
                                                                                                                                        \
                for (zend_hash_internal_pointer_reset(_ht);                                     \
-                               (key_type = zend_hash_get_current_key_ex(_ht, &key, &key_length, &num_key, 0, NULL)) != HASH_KEY_NON_EXISTANT; \
+                               (key_type = zend_hash_get_current_key_ex(_ht, &key, &key_length, &num_key, 0, NULL)) != HASH_KEY_NON_EXISTENT; \
                                        zend_hash_move_forward(_ht)) {                                  \
                        if (key_type == HASH_KEY_IS_LONG) {                                             \
                                php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Skipping numeric key %ld", num_key);        \
index 99dbb538eab35d41f5773295b17b3255de739c19..22873862f7569d909407f55278e17cbf9a59297d 100644 (file)
@@ -4017,7 +4017,7 @@ PHP_FUNCTION(array_rand)
 
        /* We can't use zend_hash_index_find() because the array may have string keys or gaps. */
        zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(input), &pos);
-       while (num_req && (key_type = zend_hash_get_current_key_ex(Z_ARRVAL_P(input), &string_key, &string_key_len, &num_key, 0, &pos)) != HASH_KEY_NON_EXISTANT) {
+       while (num_req && (key_type = zend_hash_get_current_key_ex(Z_ARRVAL_P(input), &string_key, &string_key_len, &num_key, 0, &pos)) != HASH_KEY_NON_EXISTENT) {
 
                randval = php_rand(TSRMLS_C);
 
index 547df52186959ec677de0201925de71565631e50..f9b8021950350515bfb6e957fd0ad96544ef1b93 100644 (file)
@@ -56,7 +56,7 @@ PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
        arg_sep_len = strlen(arg_sep);
 
        for (zend_hash_internal_pointer_reset(ht);
-               (key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) != HASH_KEY_NON_EXISTANT;
+               (key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) != HASH_KEY_NON_EXISTENT;
                zend_hash_move_forward(ht)
        ) {
                if (key_type == HASH_KEY_IS_STRING && key_len && key[key_len-1] == '\0') {
index 4e39a40be4ebf8bdbd1f48e76872fc1bea71692d..d78ca9976b8256a24844183d332fd0fc170121d6 100644 (file)
@@ -172,7 +172,7 @@ static php_process_env_t _php_array_to_envp(zval *environment, int is_persistent
 #endif
                                p += el_len + 1;
                                break;
-                       case HASH_KEY_NON_EXISTANT:
+                       case HASH_KEY_NON_EXISTENT:
                                break;
                }
        }
index f487763b9e02b6dd1092a5cb51f9220d8c3270a6..0610ecfc49fd781ee831a63fdc23f52b9da80ef2 100644 (file)
@@ -583,7 +583,7 @@ PHP_FUNCTION(stream_get_wrappers)
                HashPosition pos;
                array_init(return_value);
                for (zend_hash_internal_pointer_reset_ex(url_stream_wrappers_hash, &pos);
-                       (key_flags = zend_hash_get_current_key_ex(url_stream_wrappers_hash, &stream_protocol, &stream_protocol_len, &num_key, 0, &pos)) != HASH_KEY_NON_EXISTANT;
+                       (key_flags = zend_hash_get_current_key_ex(url_stream_wrappers_hash, &stream_protocol, &stream_protocol_len, &num_key, 0, &pos)) != HASH_KEY_NON_EXISTENT;
                        zend_hash_move_forward_ex(url_stream_wrappers_hash, &pos)) {
                                if (key_flags == HASH_KEY_IS_STRING) {
                                        add_next_index_stringl(return_value, stream_protocol, stream_protocol_len - 1, 1);
@@ -668,7 +668,7 @@ static int stream_array_from_fd_set(zval *stream_array, fd_set *fds TSRMLS_DC)
 
                type = zend_hash_get_current_key_ex(Z_ARRVAL_P(stream_array),
                                &key, &key_len, &num_ind, 0, NULL);
-               if (type == HASH_KEY_NON_EXISTANT ||
+               if (type == HASH_KEY_NON_EXISTENT ||
                        zend_hash_get_current_data(Z_ARRVAL_P(stream_array), (void **) &elem) == FAILURE) {
                        continue; /* should not happen */
                }
index b44be124a15eb4869d766b5e2e891c62e0255a10..1e5c38a3731e6abea966ca60577dc613f81a3c92 100644 (file)
@@ -559,7 +559,7 @@ PHP_FUNCTION(stream_get_filters)
 
        if (filters_hash) {
                for(zend_hash_internal_pointer_reset(filters_hash);
-                       (key_flags = zend_hash_get_current_key_ex(filters_hash, &filter_name, &filter_name_len, &num_key, 0, NULL)) != HASH_KEY_NON_EXISTANT;
+                       (key_flags = zend_hash_get_current_key_ex(filters_hash, &filter_name, &filter_name_len, &num_key, 0, NULL)) != HASH_KEY_NON_EXISTENT;
                        zend_hash_move_forward(filters_hash))
                                if (key_flags == HASH_KEY_IS_STRING) {
                                        add_next_index_stringl(return_value, filter_name, filter_name_len - 1, 1);
index f76a14cfa66410880fd2208f50d766a3de7ddfbe..cd868bb50f5af5779355210628734de58d301951 100644 (file)
@@ -649,7 +649,7 @@ static void php_var_serialize_class(smart_str *buf, zval *struc, zval *retval_pt
                for (;; zend_hash_move_forward_ex(HASH_OF(retval_ptr), &pos)) {
                        i = zend_hash_get_current_key_ex(HASH_OF(retval_ptr), &key, NULL, &index, 0, &pos);
 
-                       if (i == HASH_KEY_NON_EXISTANT) {
+                       if (i == HASH_KEY_NON_EXISTENT) {
                                break;
                        }
 
@@ -860,7 +860,7 @@ static void php_var_serialize_intern(smart_str *buf, zval *struc, HashTable *var
                                zend_hash_internal_pointer_reset_ex(myht, &pos);
                                for (;; zend_hash_move_forward_ex(myht, &pos)) {
                                        i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
-                                       if (i == HASH_KEY_NON_EXISTANT) {
+                                       if (i == HASH_KEY_NON_EXISTENT) {
                                                break;
                                        }
                                        if (incomplete_class && strcmp(key, MAGIC_MEMBER) == 0) {
index 925b554a56768d2e0a4861e47e2d6e4ff27dba8c..b73cbcfe2478b25751ac2087591e9943efc48008 100644 (file)
@@ -502,7 +502,7 @@ static XMLRPC_VECTOR_TYPE determine_vector_type (HashTable *ht)
                        }
                        bArray = 1;
                        last_num = num_index;
-               } else if (res == HASH_KEY_NON_EXISTANT) {
+               } else if (res == HASH_KEY_NON_EXISTENT) {
                        break;
                } else if (res == HASH_KEY_IS_STRING) {
                        if (bArray) {
@@ -582,7 +582,7 @@ static XMLRPC_VALUE PHP_to_XMLRPC_worker (const char* key, zval* in_val, int dep
                                                        int res = my_zend_hash_get_current_key(Z_ARRVAL_P(val_arr), &my_key, &num_index);
 
                                                        switch (res) {
-                                                               case HASH_KEY_NON_EXISTANT:
+                                                               case HASH_KEY_NON_EXISTENT:
                                                                        break;
                                                                case HASH_KEY_IS_STRING:
                                                                case HASH_KEY_IS_LONG:
index cf3f098c53676db32dbbf1ce09760c1e91406de0..99905c8b605a63b8f5e3301b22d70d0ac508b5bf 100644 (file)
@@ -610,7 +610,7 @@ static int fcgi_read_request(fcgi_request *req)
                }
 
                zend_hash_internal_pointer_reset_ex(req->env, &pos);
-               while ((key_type = zend_hash_get_current_key_ex(req->env, &str_index, &str_length, &num_index, 0, &pos)) != HASH_KEY_NON_EXISTANT) {
+               while ((key_type = zend_hash_get_current_key_ex(req->env, &str_index, &str_length, &num_index, 0, &pos)) != HASH_KEY_NON_EXISTENT) {
                        int zlen;
                        zend_hash_move_forward_ex(req->env, &pos);
                        if (key_type != HASH_KEY_IS_STRING) {