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