@@ -144,17 +144,17 @@ typedef int (*zend_object_compare_t)(zval *object1, zval *object2);
144
144
/* Cast an object to some other type.
145
145
* readobj and retval must point to distinct zvals.
146
146
*/
147
- typedef int (* zend_object_cast_t )(zend_object * readobj , zval * retval , int type );
147
+ typedef zend_result (* zend_object_cast_t )(zend_object * readobj , zval * retval , int type );
148
148
149
149
/* updates *count to hold the number of elements present and returns SUCCESS.
150
150
* Returns FAILURE if the object does not have any sense of overloaded dimensions */
151
- typedef int (* zend_object_count_elements_t )(zend_object * object , zend_long * count );
151
+ typedef zend_result (* zend_object_count_elements_t )(zend_object * object , zend_long * count );
152
152
153
- typedef int (* zend_object_get_closure_t )(zend_object * obj , zend_class_entry * * ce_ptr , zend_function * * fptr_ptr , zend_object * * obj_ptr , bool check_only );
153
+ typedef zend_result (* zend_object_get_closure_t )(zend_object * obj , zend_class_entry * * ce_ptr , zend_function * * fptr_ptr , zend_object * * obj_ptr , bool check_only );
154
154
155
155
typedef HashTable * (* zend_object_get_gc_t )(zend_object * object , zval * * table , int * n );
156
156
157
- typedef int (* zend_object_do_operation_t )(zend_uchar opcode , zval * result , zval * op1 , zval * op2 );
157
+ typedef zend_result (* zend_object_do_operation_t )(zend_uchar opcode , zval * result , zval * op1 , zval * op2 );
158
158
159
159
struct _zend_object_handlers {
160
160
/* offset of real object header (usually zero) */
@@ -209,7 +209,7 @@ ZEND_API struct _zend_property_info *zend_get_property_info(zend_class_entry *ce
209
209
ZEND_API HashTable * zend_std_get_properties (zend_object * object );
210
210
ZEND_API HashTable * zend_std_get_gc (zend_object * object , zval * * table , int * n );
211
211
ZEND_API HashTable * zend_std_get_debug_info (zend_object * object , int * is_temp );
212
- ZEND_API int zend_std_cast_object_tostring (zend_object * object , zval * writeobj , int type );
212
+ ZEND_API zend_result zend_std_cast_object_tostring (zend_object * object , zval * writeobj , int type );
213
213
ZEND_API zval * zend_std_get_property_ptr_ptr (zend_object * object , zend_string * member , int type , void * * cache_slot );
214
214
ZEND_API zval * zend_std_read_property (zend_object * object , zend_string * member , int type , void * * cache_slot , zval * rv );
215
215
ZEND_API zval * zend_std_write_property (zend_object * object , zend_string * member , zval * value , void * * cache_slot );
@@ -222,7 +222,7 @@ ZEND_API void zend_std_unset_dimension(zend_object *object, zval *offset);
222
222
ZEND_API zend_function * zend_std_get_method (zend_object * * obj_ptr , zend_string * method_name , const zval * key );
223
223
ZEND_API zend_string * zend_std_get_class_name (const zend_object * zobj );
224
224
ZEND_API int zend_std_compare_objects (zval * o1 , zval * o2 );
225
- ZEND_API int zend_std_get_closure (zend_object * obj , zend_class_entry * * ce_ptr , zend_function * * fptr_ptr , zend_object * * obj_ptr , bool check_only );
225
+ ZEND_API zend_result zend_std_get_closure (zend_object * obj , zend_class_entry * * ce_ptr , zend_function * * fptr_ptr , zend_object * * obj_ptr , bool check_only );
226
226
ZEND_API void rebuild_object_properties (zend_object * zobj );
227
227
228
228
ZEND_API HashTable * zend_std_build_object_properties_array (zend_object * zobj );
0 commit comments