@@ -1795,10 +1795,10 @@ static void sdl_serialize_key(const zend_string *key, smart_str *out)
1795
1795
}
1796
1796
}
1797
1797
1798
- static void sdl_serialize_encoder_ref (encodePtr enc , HashTable * tmp_encoders , smart_str * out ) {
1798
+ static void sdl_serialize_encoder_ref (const encodePtr enc , const HashTable * tmp_encoders , smart_str * out ) {
1799
1799
if (enc ) {
1800
1800
zval * encoder_num ;
1801
- if ((encoder_num = zend_hash_str_find (tmp_encoders , (char * )& enc , sizeof (enc ))) != 0 ) {
1801
+ if ((encoder_num = zend_hash_str_find (tmp_encoders , (const char * )& enc , sizeof (enc ))) != 0 ) {
1802
1802
WSDL_CACHE_PUT_INT (Z_LVAL_P (encoder_num ), out );
1803
1803
} else {
1804
1804
WSDL_CACHE_PUT_INT (0 , out );
@@ -1808,10 +1808,10 @@ static void sdl_serialize_encoder_ref(encodePtr enc, HashTable *tmp_encoders, sm
1808
1808
}
1809
1809
}
1810
1810
1811
- static void sdl_serialize_type_ref (sdlTypePtr type , HashTable * tmp_types , smart_str * out ) {
1811
+ static void sdl_serialize_type_ref (const sdlTypePtr type , const HashTable * tmp_types , smart_str * out ) {
1812
1812
if (type ) {
1813
1813
zval * type_num ;
1814
- if ((type_num = zend_hash_str_find (tmp_types , (char * )& type , sizeof (type ))) != NULL ) {
1814
+ if ((type_num = zend_hash_str_find (tmp_types , (const char * )& type , sizeof (type ))) != NULL ) {
1815
1815
WSDL_CACHE_PUT_INT (Z_LVAL_P (type_num ), out );
1816
1816
} else {
1817
1817
WSDL_CACHE_PUT_INT (0 , out );
@@ -1821,7 +1821,7 @@ static void sdl_serialize_type_ref(sdlTypePtr type, HashTable *tmp_types, smart_
1821
1821
}
1822
1822
}
1823
1823
1824
- static void sdl_serialize_attribute (sdlAttributePtr attr , HashTable * tmp_encoders , smart_str * out )
1824
+ static void sdl_serialize_attribute (const sdlAttributePtr attr , const HashTable * tmp_encoders , smart_str * out )
1825
1825
{
1826
1826
size_t i ;
1827
1827
@@ -1851,7 +1851,7 @@ static void sdl_serialize_attribute(sdlAttributePtr attr, HashTable *tmp_encoder
1851
1851
}
1852
1852
}
1853
1853
1854
- static void sdl_serialize_model (sdlContentModelPtr model , HashTable * tmp_types , HashTable * tmp_elements , smart_str * out )
1854
+ static void sdl_serialize_model (const sdlContentModelPtr model , const HashTable * tmp_types , const HashTable * tmp_elements , smart_str * out )
1855
1855
{
1856
1856
WSDL_CACHE_PUT_1 (model -> kind , out );
1857
1857
WSDL_CACHE_PUT_INT (model -> min_occurs , out );
@@ -1883,7 +1883,7 @@ static void sdl_serialize_model(sdlContentModelPtr model, HashTable *tmp_types,
1883
1883
}
1884
1884
}
1885
1885
1886
- static void sdl_serialize_resriction_int (sdlRestrictionIntPtr x , smart_str * out )
1886
+ static void sdl_serialize_resriction_int (const sdlRestrictionIntPtr x , smart_str * out )
1887
1887
{
1888
1888
if (x ) {
1889
1889
WSDL_CACHE_PUT_1 (1 , out );
@@ -1894,7 +1894,7 @@ static void sdl_serialize_resriction_int(sdlRestrictionIntPtr x, smart_str *out)
1894
1894
}
1895
1895
}
1896
1896
1897
- static void sdl_serialize_resriction_char (sdlRestrictionCharPtr x , smart_str * out )
1897
+ static void sdl_serialize_resriction_char (const sdlRestrictionCharPtr x , smart_str * out )
1898
1898
{
1899
1899
if (x ) {
1900
1900
WSDL_CACHE_PUT_1 (1 , out );
@@ -1905,7 +1905,7 @@ static void sdl_serialize_resriction_char(sdlRestrictionCharPtr x, smart_str *ou
1905
1905
}
1906
1906
}
1907
1907
1908
- static void sdl_serialize_type (sdlTypePtr type , HashTable * tmp_encoders , HashTable * tmp_types , smart_str * out )
1908
+ static void sdl_serialize_type (const sdlTypePtr type , const HashTable * tmp_encoders , const HashTable * tmp_types , smart_str * out )
1909
1909
{
1910
1910
size_t i ;
1911
1911
HashTable * tmp_elements = NULL ;
@@ -2001,15 +2001,15 @@ static void sdl_serialize_type(sdlTypePtr type, HashTable *tmp_encoders, HashTab
2001
2001
}
2002
2002
}
2003
2003
2004
- static void sdl_serialize_encoder (encodePtr enc , HashTable * tmp_types , smart_str * out )
2004
+ static void sdl_serialize_encoder (const encodePtr enc , const HashTable * tmp_types , smart_str * out )
2005
2005
{
2006
2006
WSDL_CACHE_PUT_INT (enc -> details .type , out );
2007
2007
sdl_serialize_string (enc -> details .type_str , out );
2008
2008
sdl_serialize_string (enc -> details .ns , out );
2009
2009
sdl_serialize_type_ref (enc -> details .sdl_type , tmp_types , out );
2010
2010
}
2011
2011
2012
- static void sdl_serialize_parameters (HashTable * ht , HashTable * tmp_encoders , HashTable * tmp_types , smart_str * out )
2012
+ static void sdl_serialize_parameters (const HashTable * ht , const HashTable * tmp_encoders , const HashTable * tmp_types , smart_str * out )
2013
2013
{
2014
2014
size_t i ;
2015
2015
@@ -2033,7 +2033,7 @@ static void sdl_serialize_parameters(HashTable *ht, HashTable *tmp_encoders, Has
2033
2033
}
2034
2034
}
2035
2035
2036
- static void sdl_serialize_soap_body (sdlSoapBindingFunctionBodyPtr body , HashTable * tmp_encoders , HashTable * tmp_types , smart_str * out )
2036
+ static void sdl_serialize_soap_body (const sdlSoapBindingFunctionBodyPtr body , const HashTable * tmp_encoders , const HashTable * tmp_types , smart_str * out )
2037
2037
{
2038
2038
size_t i , j ;
2039
2039
0 commit comments