You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
0 commit comments