Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[perl #107636] Make Carp::longmess work inside die override
When PL_last_in_gv (and hence $.) is set, Carp::longmess uses eval { die } to find out what handle and line number perl will append to the error message. It was not qualifying the die with CORE::, so a CORE::GLOBAL::die override that itself calls Carp::longmess would result in infinite recursion if that override were installed before Carp loaded. This broke Class::Scaffold’s tests, which began to hang.
- Loading branch information
Father Chrysostomos
committed
Apr 20, 2012
1 parent
cc33632
commit 781fa0f
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters