Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't set SVf_POK in Perl_sv_2pv_flags() when caching the string for …
…an IV. This permits XS code (such as serialisers) to distinguish between values that started as IVs but had a string representation cached, and values that started as PVs but had an (exact) integer representation cached. As implemented, the change in flags means that Perl_sv_2pv_flags() will be entered each time the string for an IV is wanted. The next commit will fix SvPV() and the other macros to avoid calling Perl_sv_2pv_flags() more than once, restoring the previous behaviour.
- Loading branch information