if (Z_TYPE_P(data) == IS_OBJECT) {
data = (zval*)Z_OBJ_P(data);
}
- if ((node_ptr = zend_hash_index_find_ptr(SOAP_GLOBAL(ref_map), (ulong)data)) != NULL) {
+ if ((node_ptr = zend_hash_index_find_ptr(SOAP_GLOBAL(ref_map), (php_uint_t)data)) != NULL) {
xmlAttrPtr attr = node_ptr->properties;
char *id;
smart_str prefix = {0};
smart_str_free(&prefix);
return 1;
} else {
- zend_hash_index_update_ptr(SOAP_GLOBAL(ref_map), (ulong)data, node);
+ zend_hash_index_update_ptr(SOAP_GLOBAL(ref_map), (php_uint_t)data, node);
}
}
return 0;
zval *data_ptr;
if (SOAP_GLOBAL(ref_map)) {
- if ((data_ptr = zend_hash_index_find(SOAP_GLOBAL(ref_map), (ulong)node)) != NULL) {
+ if ((data_ptr = zend_hash_index_find(SOAP_GLOBAL(ref_map), (php_uint_t)node)) != NULL) {
if (!Z_REFCOUNTED_P(data) ||
!Z_REFCOUNTED_P(data_ptr) ||
Z_COUNTED_P(data) != Z_COUNTED_P(data_ptr)) {
static void soap_add_xml_ref(zval *data, xmlNodePtr node TSRMLS_DC)
{
if (SOAP_GLOBAL(ref_map)) {
- zend_hash_index_update(SOAP_GLOBAL(ref_map), (ulong)node, data);
+ zend_hash_index_update(SOAP_GLOBAL(ref_map), (php_uint_t)node, data);
}
}
if (data && data->children) {
if (data->children->type == XML_TEXT_NODE && data->children->next == NULL) {
- long lval;
+ php_int_t lval;
double dval;
whiteSpace_collapse(data->children->content);
if (data && data->children) {
if (data->children->type == XML_TEXT_NODE && data->children->next == NULL) {
- long lval;
+ php_int_t lval;
double dval;
whiteSpace_collapse(data->children->content);
{
zval *temp_data;
zend_string *key_val;
- ulong int_val;
+ php_uint_t int_val;
xmlNodePtr xmlParam;
xmlNodePtr xparam, item;
xmlNodePtr key;
static int is_map(zval *array)
{
- ulong index;
+ php_uint_t index;
zend_string *key;
int i = 0;
char *host;
char *name;
char *protocol;
- long namelen;
+ php_int_t namelen;
int port;
int old_error_reporting;
struct timeval tv;
int http_1_1;
int http_status;
int content_type_xml = 0;
- long redirect_max = 20;
+ php_int_t redirect_max = 20;
char *content_encoding;
char *http_msg = NULL;
zend_bool old_allow_url_fopen;
zend_hash_move_forward(tmp->attributes);
} else {
- ulong index;
+ php_uint_t index;
schema_attributegroup_fixup(ctx, tmp_attr, ht);
zend_hash_get_current_key(tmp->attributes, NULL, &index, 0);
}
if (type->attributes) {
zend_string *str_key;
- ulong index;
+ php_uint_t index;
ZEND_HASH_FOREACH_KEY_PTR(type->attributes, index, str_key, attr) {
if (str_key) {
free(Z_PTR_P(zv));
}
-sdlPtr get_sdl(zval *this_ptr, char *uri, long cache_wsdl TSRMLS_DC)
+sdlPtr get_sdl(zval *this_ptr, char *uri, php_int_t cache_wsdl TSRMLS_DC)
{
char fn[MAXPATHLEN];
sdlPtr sdl = NULL;
};
-sdlPtr get_sdl(zval *this_ptr, char *uri, long cache_wsdl TSRMLS_DC);
+sdlPtr get_sdl(zval *this_ptr, char *uri, php_int_t cache_wsdl TSRMLS_DC);
encodePtr get_encoder_from_prefix(sdlPtr sdl, xmlNodePtr data, const xmlChar *type);
encodePtr get_encoder(sdlPtr sdl, const char *ns, const char *type);
char cache_mode;
char cache_enabled;
char* cache_dir;
- long cache_ttl;
- long cache_limit;
+ php_int_t cache_ttl;
+ php_int_t cache_limit;
HashTable *mem_cache;
xmlCharEncodingHandlerPtr encoding;
HashTable *class_map;
zval *wsdl = NULL, *options = NULL;
zend_resource *res;
int version = SOAP_1_1;
- long cache_wsdl;
+ php_int_t cache_wsdl;
HashTable *typemap_ht = NULL;
SOAP_SERVER_BEGIN_CODE();
PHP_METHOD(SoapServer, setPersistence)
{
soapServicePtr service;
- long value;
+ php_int_t value;
SOAP_SERVER_BEGIN_CODE();
FETCH_THIS_SERVICE(service);
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &value) != FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "i", &value) != FAILURE) {
if (service->type == SOAP_CLASS) {
if (value == SOAP_PERSISTENCE_SESSION ||
value == SOAP_PERSISTENCE_REQUEST) {
service->soap_class.persistance = value;
} else {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to set persistence with bogus value (%ld)", value);
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to set persistence with bogus value (%pd)", value);
return;
}
} else {
zval *wsdl, *options = NULL;
int soap_version = SOAP_1_1;
php_stream_context *context = NULL;
- long cache_wsdl;
+ php_int_t cache_wsdl;
sdlPtr sdl = NULL;
HashTable *typemap_ht = NULL;
zval *this_ptr = getThis();
{
char *buf, *location, *action;
int buf_size, location_size, action_size;
- long version;
- long one_way = 0;
+ php_int_t version;
+ php_int_t one_way = 0;
zval *this_ptr = getThis();
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sssl|l",
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sssi|i",
&buf, &buf_size,
&location, &location_size,
&action, &action_size,
int i = 0;
zend_string *param_name;
//???
- ulong param_index = i;
+ php_uint_t param_index = i;
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(ret), param_index, param_name, data) {
parameter = get_param(function, param_name->val, param_index, TRUE);