@@ -1408,7 +1408,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1408
1408
return ret ;
1409
1409
}
1410
1410
1411
- object_init_ex (ret , ce );
1411
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1412
+ return ret ;
1413
+ }
1412
1414
master_to_zval_int (& base , enc , data );
1413
1415
set_zval_property (ret , "_" , & base );
1414
1416
} else {
@@ -1417,7 +1419,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1417
1419
if (soap_check_xml_ref (ret , data )) {
1418
1420
return ret ;
1419
1421
}
1420
- object_init_ex (ret , ce );
1422
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1423
+ return ret ;
1424
+ }
1421
1425
soap_add_xml_ref (ret , data );
1422
1426
}
1423
1427
} else if (sdlType -> kind == XSD_TYPEKIND_EXTENSION &&
@@ -1462,7 +1466,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1462
1466
return ret ;
1463
1467
}
1464
1468
1465
- object_init_ex (ret , ce );
1469
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1470
+ return ret ;
1471
+ }
1466
1472
soap_add_xml_ref (ret , data );
1467
1473
master_to_zval_int (& base , sdlType -> encode , data );
1468
1474
set_zval_property (ret , "_" , & base );
@@ -1473,7 +1479,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1473
1479
if (soap_check_xml_ref (ret , data )) {
1474
1480
return ret ;
1475
1481
}
1476
- object_init_ex (ret , ce );
1482
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1483
+ return ret ;
1484
+ }
1477
1485
soap_add_xml_ref (ret , data );
1478
1486
}
1479
1487
if (sdlType -> model ) {
@@ -1533,7 +1541,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1533
1541
return ret ;
1534
1542
}
1535
1543
1536
- object_init_ex (ret , ce );
1544
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1545
+ return ret ;
1546
+ }
1537
1547
soap_add_xml_ref (ret , data );
1538
1548
trav = data -> children ;
1539
1549
0 commit comments