]> granicus.if.org Git - php/commitdiff
API update
authorZeev Suraski <zeev@php.net>
Tue, 21 Aug 2001 12:57:53 +0000 (12:57 +0000)
committerZeev Suraski <zeev@php.net>
Tue, 21 Aug 2001 12:57:53 +0000 (12:57 +0000)
ext/openssl/openssl.c
ext/session/php_session.h
ext/session/session.c
ext/standard/array.c
ext/standard/php_var.h
ext/standard/string.c
ext/standard/var.c
ext/wddx/wddx.c
sapi/apache2filter/apache_config.c

index 40f9974163a82cc5bd3fdcea2b7166fa288f6026..3d14c37b923ddb612883c8bc12963c57f7df2324 100644 (file)
@@ -1284,7 +1284,8 @@ PHP_FUNCTION(openssl_pkcs7_encrypt)
        X509 * cert;
        int argc;
        EVP_CIPHER *cipher = NULL;
-       ulong strindexlen, intindex;
+       uint strindexlen;
+       ulong intindex;
        char * strindex;
 
        argc = ZEND_NUM_ARGS();
@@ -1419,7 +1420,8 @@ PHP_FUNCTION(openssl_pkcs7_sign)
        BIO * infile = NULL, * outfile = NULL;
        STACK_OF(X509) *others = NULL;
        long certresource = -1, keyresource = -1;
-       ulong strindexlen, intindex;
+       ulong intindex;
+       uint strindexlen;
        HashPosition hpos;
        char * strindex;
 
index 3c36d513c17dbf2d089aace2432ec6245c8615c3..8eb94e11176a17b19059c757f5e027f9639408d0 100644 (file)
@@ -174,7 +174,7 @@ int php_session_register_serializer(const char *name,
 
 #define PS_ENCODE_VARS                                                                                         \
        char *key;                                                                                                      \
-       ulong key_length;                                                                                       \
+       uint key_length;                                                                                        \
        ulong num_key;                                                                                          \
        zval **struc;
 
index 491b58f31816e8d99d3ec65f3bf1c330767c9d8d..538f9d126440c1e0dbde706f9c05f26baa7c133c 100644 (file)
@@ -529,7 +529,7 @@ static void php_session_save_current_state(TSRMLS_D)
        int vallen;
        int ret = FAILURE;
        char *variable;
-       ulong variable_len;
+       uint variable_len;
        ulong num_key;
        HashPosition pos;
        
index 312dfb35afff639cf9d8151512cf51767ff75c04..0029e9dc2f039f25957d4387d0de591e1101654d 100644 (file)
@@ -948,7 +948,7 @@ static int php_array_walk(HashTable *target_hash, zval **userdata TSRMLS_DC)
                  *retval_ptr,                  /* Return value - unused */
                  *key;                         /* Entry key */
        char  *string_key;
-       ulong  string_key_len;
+       uint  string_key_len;
        ulong  num_key;
        HashPosition pos;
 
@@ -1144,7 +1144,8 @@ PHP_FUNCTION(extract)
        zval **var_array, **z_extract_type, **prefix;
        zval **entry, *data;
        char *var_name, *final_name;
-       ulong num_key, var_name_len;
+       ulong num_key;
+       uint var_name_len;
        int var_exists, extract_type, key_type, count = 0;
        HashPosition pos;
 
@@ -1735,7 +1736,7 @@ PHP_FUNCTION(array_slice)
                                 argc;                  /* Number of function arguments */
                                 
        char            *string_key;
-       ulong            string_key_len;
+       uint             string_key_len;
        ulong            num_key;
        HashPosition hpos;
        
@@ -1821,7 +1822,7 @@ PHPAPI void php_array_merge(HashTable *dest, HashTable *src, int recursive)
        zval      **src_entry,
                          **dest_entry;
        char       *string_key;
-       ulong           string_key_len;
+       uint            string_key_len;
        ulong           num_key;
        HashPosition pos;
 
@@ -1913,7 +1914,7 @@ PHP_FUNCTION(array_keys)
                                *new_val;               /* New value */
        int                      add_key;               /* Flag to indicate whether a key should be added */
        char            *string_key;    /* String key */
-       ulong            string_key_len;
+       uint             string_key_len;
        ulong            num_key;               /* Numeric key */
        HashPosition pos;
 
@@ -2074,7 +2075,7 @@ PHP_FUNCTION(array_reverse)
                           **z_preserve_keys, /* Flag: whether to preserve keys */
                           **entry;                       /* An entry in the input array */
        char            *string_key;
-       ulong            string_key_len;
+       uint             string_key_len;
        ulong            num_key;
        zend_bool        preserve_keys = 0;
        HashPosition pos;
@@ -2195,7 +2196,7 @@ PHP_FUNCTION(array_flip)
        zval **array, **entry, *data;
        HashTable *target_hash;
        char *string_key;
-       ulong str_key_len;
+       uint str_key_len;
        ulong num_key;
        HashPosition pos;
                                        
@@ -2721,7 +2722,7 @@ PHP_FUNCTION(array_rand)
        long randval;
        int num_req_val, num_avail, key_type;
        char *string_key;
-       ulong string_key_len;
+       uint string_key_len;
        ulong num_key;
        HashPosition pos;
 
@@ -2926,7 +2927,7 @@ PHP_FUNCTION(array_filter)
        zval *retval = NULL;
        char *callback_name;
        char *string_key;
-       ulong string_key_len;
+       uint string_key_len;
        ulong num_key;
        HashPosition pos;
        
index f957d37e3359bd2436f47d6691d3a3ec6c78a303..6336e0fe8ec36febbb07c92199df879014a8f742 100644 (file)
@@ -53,8 +53,9 @@ if (var_hash) { \
     while (zend_hash_get_current_data_ex(var_hash, (void **) &zval_ref, &pos) == SUCCESS) { \
         if (*zval_ref == ozval) { \
             char *string_key; \
-            ulong str_key_len; \
+            uint str_key_len; \
             ulong num_key; \
+                                                       \
             zend_hash_get_current_key_ex(var_hash, &string_key, &str_key_len, &num_key, 1, &pos); \
             /* this is our hash and it _will_ be number indexed! */ \
             zend_hash_index_update(var_hash, num_key, &nzval, sizeof(zval *), NULL); \
index 45e3d4451ce680fb68e3f4ce1f91ff8dc43749ea..9ef011d51efe14890adab3427c0aa73b44588af6 100644 (file)
@@ -2713,7 +2713,8 @@ PHP_FUNCTION(str_replace)
        zval **subject, **search, **replace, **subject_entry, **pboyer;
        zval *result;
        char *string_key;
-       ulong string_key_len, num_key;
+       uint string_key_len;
+       ulong num_key;
        int boyer = 0;
 
        if(ZEND_NUM_ARGS() < 3 ||
index 4f56c0db4a9a13bef710548b7c921f1bab68e97f..8a542c8de43389b8e924166946362b135bba24b0 100644 (file)
@@ -320,7 +320,7 @@ static void php_var_serialize_intern(smart_str *buf, zval **struc, HashTable *va
                                char *key;
                                zval **data;
                                ulong index;
-                               ulong key_len;
+                               uint key_len;
                                HashPosition pos;
                                
                                zend_hash_internal_pointer_reset_ex(myht, &pos);
index 37445b7fa7a425482501c61226f52b15de93b879..b20f5e1a3bf3a4d6ae4fe61be31deba4afc64641 100644 (file)
@@ -246,7 +246,7 @@ PS_SERIALIZER_DECODE_FUNC(wddx)
        zval *retval;
        zval **ent;
        char *key;
-       ulong key_length;
+       uint key_length;
        char tmp[128];
        ulong idx;
        int hash_type;
@@ -477,7 +477,7 @@ static void php_wddx_serialize_object(wddx_packet *packet, zval *obj)
                        php_wddx_add_chunk_static(packet, WDDX_STRUCT_E);
                }
        } else {
-               ulong key_len;
+               uint key_len;
 
                PHP_CLASS_ATTRIBUTES;
 
@@ -524,7 +524,7 @@ static void php_wddx_serialize_array(wddx_packet *packet, zval *arr)
 {
        zval **ent;
        char *key;
-       ulong key_len;
+       uint key_len;
        int is_struct = 0, ent_type;
        ulong idx;
        HashTable *target_hash;
index a70f926996cdbb19b4d36e85c5b7bf99da17f9f7..f99ae5ef0e96b813d696616c9e3154b0b3128a90 100644 (file)
@@ -88,7 +88,7 @@ void *merge_php_config(apr_pool_t *p, void *base_conf, void *new_conf)
        php_dir_entry *pe;
        php_dir_entry *data;
        char *str;
-       ulong str_len;
+       uint str_len;
        ulong num_index;
 
        phpapdebug((stderr, "Merge dir (%p) (%p)\n", base_conf, new_conf));
@@ -110,7 +110,7 @@ void apply_config(void *dummy)
 {
        php_conf_rec *d = dummy;
        char *str;
-       ulong str_len;
+       uint str_len;
        php_dir_entry *data;
        
        for (zend_hash_internal_pointer_reset(&d->config);