summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2000-08-07 17:59:38 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-07 16:12:27 +0000
commit81689caa70f1ebdcb0b17a51c3e0742ee11ec130 (patch)
tree9176563e9a9dbc3242f7453a347c35ccf1aa34bf /sv.c
parent427f4adb1817daf51d5b7762a1ebb87394ca8ac8 (diff)
downloadperl-81689caa70f1ebdcb0b17a51c3e0742ee11ec130.tar.gz
Make bless(REF, REF) a fatal error, add bless tests.
Subject: [PATCH bleadperl-6530] bless, REF, and bless(REF, REF) Message-Id: <200008071559.QAA29541@crypt.compulink.co.uk> p4raw-id: //depot/perl@6539
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 20b387c96a..382805f362 100644
--- a/sv.c
+++ b/sv.c
@@ -2182,7 +2182,10 @@ Perl_sv_2pv(pTHX_ register SV *sv, STRLEN *lp)
case SVt_PV:
case SVt_PVIV:
case SVt_PVNV:
- case SVt_PVBM: s = "SCALAR"; break;
+ case SVt_PVBM: if (SvROK(sv))
+ s = "REF";
+ else
+ s = "SCALAR"; break;
case SVt_PVLV: s = "LVALUE"; break;
case SVt_PVAV: s = "ARRAY"; break;
case SVt_PVHV: s = "HASH"; break;