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