mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
API update
This commit is contained in:
parent
4757104e45
commit
e140b35b04
9 changed files with 26 additions and 21 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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); \
|
||||
|
|
|
@ -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 ||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue