Skip to content

Commit

Permalink
MFH
Browse files Browse the repository at this point in the history
  • Loading branch information
zsuraski committed Aug 21, 2001
1 parent a4cf06c commit 1563fa9
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 21 deletions.
6 changes: 4 additions & 2 deletions ext/openssl/openssl.c
Expand Up @@ -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();
Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion ext/session/php_session.h
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion ext/session/session.c
Expand Up @@ -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;

Expand Down
19 changes: 10 additions & 9 deletions ext/standard/array.c
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down
3 changes: 2 additions & 1 deletion ext/standard/php_var.h
Expand Up @@ -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); \
Expand Down
3 changes: 2 additions & 1 deletion ext/standard/string.c
Expand Up @@ -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 ||
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/var.c
Expand Up @@ -322,7 +322,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);
Expand Down
6 changes: 3 additions & 3 deletions ext/wddx/wddx.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions sapi/apache2filter/apache_config.c
Expand Up @@ -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));
Expand All @@ -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);
Expand Down

0 comments on commit 1563fa9

Please sign in to comment.