@@ -278,7 +278,7 @@ static bool soap_check_zval_ref(zval *data, xmlNodePtr node) {
278278 if (Z_TYPE_P (data ) == IS_OBJECT ) {
279279 data = (zval * )Z_OBJ_P (data );
280280 }
281- if ((node_ptr = zend_hash_index_find_ptr (SOAP_GLOBAL (ref_map ), (zend_ulong )data )) != NULL ) {
281+ if ((node_ptr = zend_hash_index_find_ptr (SOAP_GLOBAL (ref_map ), (zend_ulong )( uintptr_t ) data )) != NULL ) {
282282 xmlAttrPtr attr = node_ptr -> properties ;
283283 char * id ;
284284 smart_str prefix = {0 };
@@ -324,7 +324,7 @@ static bool soap_check_zval_ref(zval *data, xmlNodePtr node) {
324324 smart_str_free (& prefix );
325325 return 1 ;
326326 } else {
327- zend_hash_index_update_ptr (SOAP_GLOBAL (ref_map ), (zend_ulong )data , node );
327+ zend_hash_index_update_ptr (SOAP_GLOBAL (ref_map ), (zend_ulong )( uintptr_t ) data , node );
328328 }
329329 }
330330 return 0 ;
@@ -335,7 +335,7 @@ static bool soap_check_xml_ref(zval *data, xmlNodePtr node)
335335 zval * data_ptr ;
336336
337337 if (SOAP_GLOBAL (ref_map )) {
338- if ((data_ptr = zend_hash_index_find (SOAP_GLOBAL (ref_map ), (zend_ulong )node )) != NULL ) {
338+ if ((data_ptr = zend_hash_index_find (SOAP_GLOBAL (ref_map ), (zend_ulong )( uintptr_t ) node )) != NULL ) {
339339 if (!Z_REFCOUNTED_P (data ) ||
340340 !Z_REFCOUNTED_P (data_ptr ) ||
341341 Z_COUNTED_P (data ) != Z_COUNTED_P (data_ptr )) {
@@ -351,7 +351,7 @@ static bool soap_check_xml_ref(zval *data, xmlNodePtr node)
351351static void soap_add_xml_ref (zval * data , xmlNodePtr node )
352352{
353353 if (SOAP_GLOBAL (ref_map )) {
354- zend_hash_index_update (SOAP_GLOBAL (ref_map ), (zend_ulong )node , data );
354+ zend_hash_index_update (SOAP_GLOBAL (ref_map ), (zend_ulong )( uintptr_t ) node , data );
355355 }
356356}
357357
0 commit comments