@@ -278,7 +278,7 @@ static bool soap_check_zval_ref(zval *data, xmlNodePtr node) {
278
278
if (Z_TYPE_P (data ) == IS_OBJECT ) {
279
279
data = (zval * )Z_OBJ_P (data );
280
280
}
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 ) {
282
282
xmlAttrPtr attr = node_ptr -> properties ;
283
283
char * id ;
284
284
smart_str prefix = {0 };
@@ -324,7 +324,7 @@ static bool soap_check_zval_ref(zval *data, xmlNodePtr node) {
324
324
smart_str_free (& prefix );
325
325
return 1 ;
326
326
} 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 );
328
328
}
329
329
}
330
330
return 0 ;
@@ -335,7 +335,7 @@ static bool soap_check_xml_ref(zval *data, xmlNodePtr node)
335
335
zval * data_ptr ;
336
336
337
337
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 ) {
339
339
if (!Z_REFCOUNTED_P (data ) ||
340
340
!Z_REFCOUNTED_P (data_ptr ) ||
341
341
Z_COUNTED_P (data ) != Z_COUNTED_P (data_ptr )) {
@@ -351,7 +351,7 @@ static bool soap_check_xml_ref(zval *data, xmlNodePtr node)
351
351
static void soap_add_xml_ref (zval * data , xmlNodePtr node )
352
352
{
353
353
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 );
355
355
}
356
356
}
357
357
0 commit comments