summaryrefslogtreecommitdiff
path: root/t/re/substr.t
Commit message (Collapse)AuthorAgeFilesLines
* pp.c: pp_substr for UTF-8 globs.Brian Fraser2011-10-061-1/+15
| | | | | Since typeglobs may have the UTF8 flag set now, we need to avoid testing SvCUR on a potential glob, as that would trip an assertion.
* remove index offsetting ($[)Zefram2011-09-091-15/+1
| | | | | | $[ remains as a variable. It no longer has compile-time magic. At runtime, it always reads as zero, accepts a write of zero, but dies on writing any other value.
* Move a test to the right fileFather Chrysostomos2011-05-261-1/+18
| | | | sub_lval.t is for lvalue subs, not built-ins.
* [perl #77692] substr causes panic: sv_len_utf8 cache...Father Chrysostomos2011-02-101-2/+12
| | | | | | | | | | | | | | | | | | | pp_substr contains this comment, which was added in perl 5.0 alpha 2 (commit 79072805bf63): PUSHs(TARG); /* avoid SvSETMAGIC here */ Calling set-magic when substr returns an lvalue will cause its argu- ment to be stringified even if the lvalue is not assigned to. That’s why set-magic has to be avoided. But the result is that utf8 caches (stored in magic) on TARG are not reset properly. Since substr lvalues now follow a different code path (and do not use TARG at all), it’s perfectly safe to call set-magic at this point. It’s also the right thing to do in case of other types of magic that might get attached to TARG.
* Fix untimely destruction introduced by lvalue ops [RT#67838] by returning a ↵Eric Brine2010-08-131-4/+1
| | | | TEMP instead of using TARG. Made appropriate TODO tests live.
* TODO tests for untimely destruction introduced by lvalue ops [RT#67838]Eric Brine2010-08-131-1/+16
|
* Removes 32-bit limit on substr arguments. The full range of IV and UV is ↵Eric Brine2010-02-141-1/+41
| | | | available for the pos and len arguments, with safe conversion to STRLEN where it's smaller than an IV.
* Revert "[perl #62646] Maximum string length with substr"Rafael Garcia-Suarez2010-01-181-16/+1
| | | | | | | | This reverts commit b6d1426f94a845fb8fece8b6ad0b7d9f35f2d62e. Conflicts: pp.c
* [perl #62646] Maximum string length with substrZefram2010-01-151-1/+16
| | | | (This is only a partial fix, since it doesn't handle lvalue substr)
* move regex related tests out of t/op/ into t/re/Yves Orton2009-09-101-0/+685