-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
S_newONCEOP: correctly copy array/hash at subroutine exit
Should a _state_ array or hash be declared immediately prior to returning, the error "Bizarre copy of HASH in subroutine exit" error would be triggered. Now, the array or hash is returned without error. Specifically: * Instead of always creating a PADSV, the appropriate padop is created. * The OPf_REF flag is switched off, allowing the return of the container variable's contents rather than the container SV itself. * The OPf_MOD & OPf_SPECIAL flags are switches off, as they are not relevant to this version of the padop. Note: The op created has been renamed from "other" to "nextop", since it is linked to the ONCE op via op_next, not op_other. Fixes GH#18630
- Loading branch information
1 parent
ff0ce7d
commit ccd591c
Showing
4 changed files
with
22 additions
and
13 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
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