You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* For the error handling that follows, we can safely assume that we
521
517
* are at the root level, since php_phongo_bson_append_object would
522
518
* have already been called for a non-root level. */
523
-
#ifPHP_VERSION_ID >= 80100
524
519
if (Z_OBJCE_P(data)->ce_flags&ZEND_ACC_ENUM) {
525
520
phongo_throw_exception(PHONGO_ERROR_UNEXPECTED_VALUE, "Enum %s cannot be serialized as a root element", ZSTR_VAL(Z_OBJCE_P(data)->name));
526
521
return;
527
522
}
528
-
#endif/* PHP_VERSION_ID >= 80100 */
529
523
530
524
if (instanceof_function(Z_OBJCE_P(data), php_phongo_type_ce)) {
531
525
phongo_throw_exception(PHONGO_ERROR_UNEXPECTED_VALUE, "%s instance %s cannot be serialized as a root element", ZSTR_VAL(php_phongo_type_ce->name), ZSTR_VAL(Z_OBJCE_P(data)->name));
0 commit comments