@@ -118,7 +118,7 @@ static void zend_user_it_dtor(zend_object_iterator *_iter)
118
118
/* }}} */
119
119
120
120
/* {{{ zend_user_it_valid */
121
- ZEND_API ZEND_RESULT_CODE zend_user_it_valid (zend_object_iterator * _iter )
121
+ ZEND_API int zend_user_it_valid (zend_object_iterator * _iter )
122
122
{
123
123
if (_iter ) {
124
124
zend_user_iterator * iter = (zend_user_iterator * )_iter ;
@@ -251,7 +251,7 @@ ZEND_API zend_object_iterator *zend_user_it_get_new_iterator(zend_class_entry *c
251
251
/* }}} */
252
252
253
253
/* {{{ zend_implement_traversable */
254
- static ZEND_RESULT_CODE zend_implement_traversable (zend_class_entry * interface , zend_class_entry * class_type )
254
+ static int zend_implement_traversable (zend_class_entry * interface , zend_class_entry * class_type )
255
255
{
256
256
/* Abstract class can implement Traversable only, in which case the extending class must
257
257
* implement Iterator or IteratorAggregate. */
@@ -278,7 +278,7 @@ static ZEND_RESULT_CODE zend_implement_traversable(zend_class_entry *interface,
278
278
/* }}} */
279
279
280
280
/* {{{ zend_implement_aggregate */
281
- static ZEND_RESULT_CODE zend_implement_aggregate (zend_class_entry * interface , zend_class_entry * class_type )
281
+ static int zend_implement_aggregate (zend_class_entry * interface , zend_class_entry * class_type )
282
282
{
283
283
if (zend_class_implements_interface (class_type , zend_ce_iterator )) {
284
284
zend_error_noreturn (E_ERROR ,
@@ -318,7 +318,7 @@ static ZEND_RESULT_CODE zend_implement_aggregate(zend_class_entry *interface, ze
318
318
/* }}} */
319
319
320
320
/* {{{ zend_implement_iterator */
321
- static ZEND_RESULT_CODE zend_implement_iterator (zend_class_entry * interface , zend_class_entry * class_type )
321
+ static int zend_implement_iterator (zend_class_entry * interface , zend_class_entry * class_type )
322
322
{
323
323
if (zend_class_implements_interface (class_type , zend_ce_aggregate )) {
324
324
zend_error_noreturn (E_ERROR ,
@@ -354,7 +354,7 @@ static ZEND_RESULT_CODE zend_implement_iterator(zend_class_entry *interface, zen
354
354
/* }}} */
355
355
356
356
/* {{{ zend_user_serialize */
357
- ZEND_API ZEND_RESULT_CODE zend_user_serialize (zval * object , unsigned char * * buffer , size_t * buf_len , zend_serialize_data * data )
357
+ ZEND_API int zend_user_serialize (zval * object , unsigned char * * buffer , size_t * buf_len , zend_serialize_data * data )
358
358
{
359
359
zend_class_entry * ce = Z_OBJCE_P (object );
360
360
zval retval ;
@@ -391,7 +391,7 @@ ZEND_API ZEND_RESULT_CODE zend_user_serialize(zval *object, unsigned char **buff
391
391
/* }}} */
392
392
393
393
/* {{{ zend_user_unserialize */
394
- ZEND_API ZEND_RESULT_CODE zend_user_unserialize (zval * object , zend_class_entry * ce , const unsigned char * buf , size_t buf_len , zend_unserialize_data * data )
394
+ ZEND_API int zend_user_unserialize (zval * object , zend_class_entry * ce , const unsigned char * buf , size_t buf_len , zend_unserialize_data * data )
395
395
{
396
396
zval zdata ;
397
397
@@ -412,23 +412,23 @@ ZEND_API ZEND_RESULT_CODE zend_user_unserialize(zval *object, zend_class_entry *
412
412
}
413
413
/* }}} */
414
414
415
- ZEND_API ZEND_RESULT_CODE zend_class_serialize_deny (zval * object , unsigned char * * buffer , size_t * buf_len , zend_serialize_data * data ) /* {{{ */
415
+ ZEND_API int zend_class_serialize_deny (zval * object , unsigned char * * buffer , size_t * buf_len , zend_serialize_data * data ) /* {{{ */
416
416
{
417
417
zend_class_entry * ce = Z_OBJCE_P (object );
418
418
zend_throw_exception_ex (NULL , 0 , "Serialization of '%s' is not allowed" , ZSTR_VAL (ce -> name ));
419
419
return FAILURE ;
420
420
}
421
421
/* }}} */
422
422
423
- ZEND_API ZEND_RESULT_CODE zend_class_unserialize_deny (zval * object , zend_class_entry * ce , const unsigned char * buf , size_t buf_len , zend_unserialize_data * data ) /* {{{ */
423
+ ZEND_API int zend_class_unserialize_deny (zval * object , zend_class_entry * ce , const unsigned char * buf , size_t buf_len , zend_unserialize_data * data ) /* {{{ */
424
424
{
425
425
zend_throw_exception_ex (NULL , 0 , "Unserialization of '%s' is not allowed" , ZSTR_VAL (ce -> name ));
426
426
return FAILURE ;
427
427
}
428
428
/* }}} */
429
429
430
430
/* {{{ zend_implement_serializable */
431
- static ZEND_RESULT_CODE zend_implement_serializable (zend_class_entry * interface , zend_class_entry * class_type )
431
+ static int zend_implement_serializable (zend_class_entry * interface , zend_class_entry * class_type )
432
432
{
433
433
if (class_type -> parent
434
434
&& (class_type -> parent -> serialize || class_type -> parent -> unserialize )
0 commit comments