@@ -1444,7 +1444,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1444
1444
return ret ;
1445
1445
}
1446
1446
1447
- object_init_ex (ret , ce );
1447
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1448
+ return ret ;
1449
+ }
1448
1450
master_to_zval_int (& base , enc , data );
1449
1451
set_zval_property (ret , "_" , & base );
1450
1452
} else {
@@ -1453,7 +1455,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1453
1455
if (soap_check_xml_ref (ret , data )) {
1454
1456
return ret ;
1455
1457
}
1456
- object_init_ex (ret , ce );
1458
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1459
+ return ret ;
1460
+ }
1457
1461
soap_add_xml_ref (ret , data );
1458
1462
}
1459
1463
} else if (sdlType -> kind == XSD_TYPEKIND_EXTENSION &&
@@ -1498,7 +1502,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1498
1502
return ret ;
1499
1503
}
1500
1504
1501
- object_init_ex (ret , ce );
1505
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1506
+ return ret ;
1507
+ }
1502
1508
soap_add_xml_ref (ret , data );
1503
1509
master_to_zval_int (& base , sdlType -> encode , data );
1504
1510
set_zval_property (ret , "_" , & base );
@@ -1509,7 +1515,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1509
1515
if (soap_check_xml_ref (ret , data )) {
1510
1516
return ret ;
1511
1517
}
1512
- object_init_ex (ret , ce );
1518
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1519
+ return ret ;
1520
+ }
1513
1521
soap_add_xml_ref (ret , data );
1514
1522
}
1515
1523
if (sdlType -> model ) {
@@ -1569,7 +1577,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1569
1577
return ret ;
1570
1578
}
1571
1579
1572
- object_init_ex (ret , ce );
1580
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1581
+ return ret ;
1582
+ }
1573
1583
soap_add_xml_ref (ret , data );
1574
1584
trav = data -> children ;
1575
1585
0 commit comments