Use SvROK(sv) rather than directly checking SvTYPE(sv) == SVt_RV in plperl.
authorTom Lane <[email protected]>
Tue, 9 Mar 2010 22:34:49 +0000 (22:34 +0000)
committerTom Lane <[email protected]>
Tue, 9 Mar 2010 22:34:49 +0000 (22:34 +0000)
commitb943a8c90ab5774ea871aee878992b084d18bb13
treef348766cc1d29e47cdd8e6ec8ac5b9a17c290716
parentc0766985ba1f0e64fe2b8f28bae2835556baca2d
Use SvROK(sv) rather than directly checking SvTYPE(sv) == SVt_RV in plperl.
The latter is considered unwarranted chumminess with the implementation,
and can lead to crashes with recent Perl versions.

Report and fix by Tim Bunce.  Back-patch to all versions containing the
questionable coding pattern.
src/pl/plperl/plperl.c