1 Revision history for indirect
3 0.24 2011-07-17 23:15 UTC
4 + Fix : [RT #64521] : "no indirect" leaking into eval.
5 This is currently only fixed for perl 5.10 (perl 5.12 and
6 higher were never affected). It was caused by a very stupid
7 mistake of mine that was introduced in indirect version 0.23.
8 Thanks Michael G Schwern for reporting.
9 + Fix : [RT #69291] : indirect.pm breaks %^H.
10 This was caused by the same mistake as for the previous bug,
11 and as such it is also only fixed for perl 5.10 (and never
13 Thanks Andrew Main for reporting.
14 + Doc : C++ compilers are officially NOT supported.
16 0.23 2010-10-03 00:15 UTC
17 + Fix : Some indirect constructs could be incorrectly reported when
18 several modules were used in the same scope. This caused
19 t/30-scope.t to fail randomly.
20 + Tst : Threads tests are now only run on perl 5.13.4 and higher.
21 They could segfault randomly because of what seems to be an
22 internal bug of Perl, which has been addressed in 5.13.4.
23 There is also an environment variable that allows you to
24 forcefully run those tests, but it should be set only for
25 author testing and not for end users.
27 0.22 2010-08-16 16:00 UTC
28 + Add : Indirect constructs are now reported for code interpolated
29 in quote-like environments, like "${\( ... )}", "@{[ ... ]}",
30 s/pattern/ ... /e, qr/(?{ ... })/ or qr/(??{ ... })/.
31 + Add : You can now make the pragma lethal by passing anything matching
32 /^:?fatal$/i to import(), including "FATAL" and ":Fatal".
33 + Fix : [RT #60378] : segmentation fault on indirect_ck_method.
34 This caused constructs like "@{[ $obj->$meth ]}" to segfault
35 when $meth was a lexical.
36 Thanks Tokuhiro Matsuno for reporting.
38 0.21 2010-05-31 23:10 UTC
39 + Chg : perl 5.8.1 is now required (instead of 5.8.0).
40 + Fix : [RT #57699] : indirect fail with 64-bit int on 5.13.1.
41 It was actually a problem with thread destructors segfaulting
42 because they weren't called at the right time anymore.
43 Thanks Andrew Main for reporting.
44 + Tst : A few more regression tests about the scope leak bug.
46 0.20 2010-04-18 21:25 UTC
47 + Fix : [RT #50570] : "indirect" leaking into LWP.
48 Thanks Andrew Main for reporting.
49 More generally, the require propagation workaround on 5.8-5.10.0
50 has been overhauled, and other scope leaks should be fixed.
51 + Fix : Test failures with 5.12 on Windows where Strawberry Perl crashes
52 because the SystemRoot environment variable is missing.
53 + Fix : Work around Kwalitee test misfailures.
55 0.19 2009-08-28 18:40 UTC
56 + Add : The new constant I_FORKSAFE can be tested to know whether the
57 module will behave nicely when fork()ing. It's currently always
58 true except on Windows where you need perl 5.10.1 for it to be
60 + Fix : I_THREADSAFE and I_FORKSAFE ought to be true when
61 PERL_INDIRECT_PM_DISABLE is set.
62 + Fix : The pragma could still leak if you passed to the "hook" option
63 a reference to the same (named) subroutine from two different
64 require scopes. The fix also provides a better solution for
66 + Fix : Segfaults when indirect is loaded for the first time from
68 + Fix : Leaks of memory associated with the root interpreter.
69 + Opt : Less memory will be used for non-threaded perls version 5.10.0
70 and below, and for threaded perls from version 5.10.1.
72 0.18 2009-08-23 16:15 UTC
73 + Add : When set, the PERL_INDIRECT_PM_DISABLE environment variable
74 disables the pragma globally.
76 0.17 2009-07-16 12:10 UTC
77 + Fix : [RT #47902] : "no indirect" leaking again.
78 This actually turned out to be a bug in how the hook coderefs
79 were stored in the hints hash.
80 Thanks Andrew Main for reporting once again.
81 + Fix : t/80-regressions.t failing on Windows.
82 + Tst : Yet more cleanups.
84 0.16 2009-07-14 16:50 UTC
85 + Add : Indirect calls on blocks are now reported. For those, '{' is
86 passed to the hook as the object description.
87 + Add : The new indirect::msg() function publicizes the default
88 warning/exception message.
89 + Fix : [RT #47866] : Segfault with UTF-8 regexps.
90 Thanks Andrew Main for reporting.
93 0.15 2009-07-08 22:55 UTC
94 + Fix : Invalid constructs with the same method and package name were
96 + Fix : The error line number used to point to the end of the expression
97 instead of its beginning.
99 0.14 2009-06-04 21:55 UTC
100 + Fix : Prevent bogus invalid syntaxes caused by reallocated memory
101 chunks. Thanks Andrew Main for reporting with a reproducible
104 0.13 2009-05-24 18:50 UTC
105 + Add : The hook now receives the file name and the line where the
106 error happened in respectively $_[2] and $_[3].
107 + Fix : Pass mortalized copies of the method name and object to the
108 hook. This seems to fix some rare crashes.
109 + Fix : Work around a bug in perl 5.10.0 and lower. Thanks Andrew Main
110 for teaching me about this issue.
111 + Fix : Report the correct file in error messages (a regression from the
114 0.12 2009-05-03 14:30 UTC
115 + Add : You can specify the action to execute for each indirect
116 construct encountered with the new "hook => $coderef" unimport()
118 + Chg : A ptable is now used internally for the op => position mapping.
119 + Fix : The pragma is now built with thread safety features enabled
120 whenever possible (a notable exception is perl 5.8.x on Win32,
121 as something seems wrong with its context handling).
122 The new indirect::I_THREADSAFE() constant reflects this.
123 + Fix : A negation precedence nit in indirect_ck_entersub().
124 + Tst : "use/no indirect" while parsing an indirect construct.
125 + Tst : Thread safety.
127 0.11 2009-02-08 18:35 UTC
128 + Fix : Potential collisions by hashing pointers with a wrong format.
129 + Upd : Resources in META.yml.
131 0.10 2009-01-17 12:40 UTC
132 Re-release 0.09_01 as stable.
134 0.09_01 2008-12-08 17:55 UTC
135 + Fix : Invalid memory read with "${\(new Foo)}" constructs. The
136 corresponding test is turned back on.
137 + Tst : Refinements in t/30-scope.t
139 0.09 2008-12-05 20:35 UTC
140 + Add : Support for perl 5.8.
141 + Tst : Skip a test in t/10-good.t that randomly segfaults for (I guess)
142 systems stricter than linux in the way they manage their memory.
144 0.08 2008-10-22 14:45 UTC
145 + Fix : A rare edge case for package whose names are prefix of 'main'.
146 + Tst : Test $$ as variable and state variables.
148 0.07_03 2008-10-17 20:10 UTC
149 + Add : Support and tests for variables with spaces after the sigil.
150 + Upd : META.yml spec updated to 1.4.
152 0.07_02 2008-10-15 21:10 UTC
153 + Add : Support and tests for package variables.
154 + Tst : Coverage improved by removing dead code.
156 0.07_01 2008-10-15 16:00 UTC
157 + Fix : [RT #40055] : Not handling RV2SV => GV(SV) correctly, which
158 could cause 'no indirect; print' segfaults. Thanks Goro Fuji for
161 0.06 2008-10-11 16:45 UTC
163 + Tst : Test "no indirect 'anything'", "foo Class->bar", and indirect
164 uses of exec() and system().
166 0.05 2008-10-02 14:40 UTC
167 + Chg : Now the old check function is always called before storing an op
169 + Fix : Misc code and docs refinements.
171 0.04 2008-08-30 19:00 UTC
172 + Fix : Clean up the op->src hash when we're done with an entersub.
173 + Tst : No longer fork for testing. IPC::Cmd isn't required anymore.
175 0.03 2008-08-12 15:25 UTC
176 This release is kindly supported by Copenhagen Hotel Centrum WiFi.
177 + Fix : Tests used not to pass PERL5OPTS to their kids. This lead to
178 failures under CPAN. I think.
181 0.02 2008-08-11 15:55 UTC
182 + Fix : Some building failures with old gcc versions that didn't seem to
183 like the ((hint == 2) ? croak : warn)(msg) construct. I think.
184 + Rem : Unused cruft from a previous implementation.
185 + Tst : Fail more gracefully when we can't capture buffers or when the
186 child returned an error.
188 0.01 2008-08-10 20:40 UTC
189 First version, released on an unsuspecting world.