]> git.vpit.fr Git - perl/modules/Variable-Magic.git/commit
Properly handle delete magic in void context rt180372
authorLukas Mai <mauke@cpan.org>
Thu, 20 Aug 2026 13:15:47 +0000 (15:15 +0200)
committerVincent Pit <vpit@cpan.org>
Thu, 20 Aug 2026 13:20:58 +0000 (15:20 +0200)
commitbb90014e0c837b76bbcb8c635ed15840104e6ed6
tree489d8d1fb5bc3d5d77ea11537ac49ad0e9b3570d
parent6371c71369e148f7cd2653c1faad57bba889d57a
Properly handle delete magic in void context

This was caused by wrongly passing G_DISCARD along the uvar action flag,
which was fixed in 5.45.2.  The delete callback should now be properly
called on all perls, old and new, but may be called several times on perls
older than 5.21.4.

This fixes [RT #180372]
Magic.xs
t/35-stash.t