p4raw-id: //depot/perl@7213
(F) This machine doesn't implement the select() system call.
+=item Self-ties are not supported
+
+(F) Self-ties are not supported in the current implementation.
+
=item Semicolon seems to be missing
(W semicolon) A nearby syntax error was probably caused by a missing
POPSTACK;
if (sv_isobject(sv)) {
sv_unmagic(varsv, how);
- sv_magic(varsv, (SvRV(sv) == varsv ? Nullsv : sv), how, Nullch, 0);
+ /* Croak if a self-tie is attempted */
+ if (varsv == SvRV(sv))
+ Perl_croak(aTHX_ "Self-ties are not supported");
+ sv_magic(varsv, sv, how, Nullch, 0);
}
LEAVE;
SP = PL_stack_base + markoff;