- if (can_call_magic_serialize(ser, ce)) {
- php_ion_serialize_object_magic(ser, zobject, NULL);
- } else if (can_call_iface_serialize(ser, ce)) {
- php_ion_serialize_object_iface(ser, zobject);
- } else if (can_call_custom_serialize(ser, zobject, &fn)) {
- php_ion_serialize_object_magic(ser, zobject, fn);
- } else if (zobject->ce->ce_flags & ZEND_ACC_ENUM) {
- php_ion_serialize_object_enum(ser, zobject);
- } else if (!is_special_class(ce, &special_ce)) {
- php_ion_serialize_object_std(ser, zobject);
- } else {