@@ -1457,7 +1457,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1457
1457
return ret ;
1458
1458
}
1459
1459
1460
- object_init_ex (ret , ce );
1460
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1461
+ return ret ;
1462
+ }
1461
1463
master_to_zval_int (& base , enc , data );
1462
1464
set_zval_property (ret , "_" , & base );
1463
1465
} else {
@@ -1466,7 +1468,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1466
1468
if (soap_check_xml_ref (ret , data )) {
1467
1469
return ret ;
1468
1470
}
1469
- object_init_ex (ret , ce );
1471
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1472
+ return ret ;
1473
+ }
1470
1474
soap_add_xml_ref (ret , data );
1471
1475
}
1472
1476
} else if (sdlType -> kind == XSD_TYPEKIND_EXTENSION &&
@@ -1511,7 +1515,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1511
1515
return ret ;
1512
1516
}
1513
1517
1514
- object_init_ex (ret , ce );
1518
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1519
+ return ret ;
1520
+ }
1515
1521
soap_add_xml_ref (ret , data );
1516
1522
master_to_zval_int (& base , sdlType -> encode , data );
1517
1523
set_zval_property (ret , "_" , & base );
@@ -1522,7 +1528,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1522
1528
if (soap_check_xml_ref (ret , data )) {
1523
1529
return ret ;
1524
1530
}
1525
- object_init_ex (ret , ce );
1531
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1532
+ return ret ;
1533
+ }
1526
1534
soap_add_xml_ref (ret , data );
1527
1535
}
1528
1536
if (sdlType -> model ) {
@@ -1582,7 +1590,9 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
1582
1590
return ret ;
1583
1591
}
1584
1592
1585
- object_init_ex (ret , ce );
1593
+ if (object_init_ex (ret , ce ) != SUCCESS ) {
1594
+ return ret ;
1595
+ }
1586
1596
soap_add_xml_ref (ret , data );
1587
1597
trav = data -> children ;
1588
1598
0 commit comments