@@ -799,12 +799,11 @@ static inline bcmath_number_obj_t *get_bcmath_number_from_zval(zval *zv) {
799
799
800
800
static zend_object * bcmath_number_create (zend_class_entry * ce )
801
801
{
802
- bcmath_number_obj_t * intern ;
802
+ bcmath_number_obj_t * intern = zend_object_alloc ( sizeof ( bcmath_number_obj_t ), ce ) ;
803
803
804
- intern = zend_object_alloc (sizeof (bcmath_number_obj_t ), ce );
805
804
zend_object_std_init (& intern -> std , ce );
806
805
object_properties_init (& intern -> std , ce );
807
- rebuild_object_properties ( & intern -> std );
806
+
808
807
intern -> num = NULL ;
809
808
intern -> value = NULL ;
810
809
intern -> scale = 1 ;
@@ -1022,7 +1021,7 @@ static zend_result bcmath_number_do_operation(uint8_t opcode, zval *ret_val, zva
1022
1021
ZVAL_OBJ (ret_val , & intern -> std );
1023
1022
1024
1023
/* For increment and decrement, etc */
1025
- if (ret == SUCCESS && op1 == & op1_copy ) {
1024
+ if (op1 == & op1_copy ) {
1026
1025
zval_ptr_dtor (op1 );
1027
1026
}
1028
1027
@@ -1056,7 +1055,7 @@ static inline zend_string *bcmath_number_value_to_str(bcmath_number_obj_t *inter
1056
1055
return intern -> value ;
1057
1056
}
1058
1057
1059
- static HashTable * bcmath_number_get_properties (zend_object * obj , zend_prop_purpose purpose )
1058
+ static HashTable * bcmath_number_get_properties_for (zend_object * obj , zend_prop_purpose purpose )
1060
1059
{
1061
1060
switch (purpose ) {
1062
1061
case ZEND_PROP_PURPOSE_DEBUG :
@@ -1130,7 +1129,7 @@ static void bcmath_number_register_class(void)
1130
1129
bcmath_number_obj_handlers .do_operation = bcmath_number_do_operation ;
1131
1130
bcmath_number_obj_handlers .compare = bcmath_number_compare ;
1132
1131
bcmath_number_obj_handlers .read_property = bcmath_number_read_property ;
1133
- bcmath_number_obj_handlers .get_properties_for = bcmath_number_get_properties ;
1132
+ bcmath_number_obj_handlers .get_properties_for = bcmath_number_get_properties_for ;
1134
1133
bcmath_number_obj_handlers .cast_object = bcmath_number_cast_object ;
1135
1134
bcmath_number_obj_handlers .get_gc = bcmath_number_get_gc ;
1136
1135
}
0 commit comments