<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,9 @@
 Revision history for autodie
 
         * TEST: Check for autodie leaking out of scope in the
-          presence of string evals.
+          presence of string evals.  (string-eval-leak.t)
+          Thanks to Florian Ragwitz and Vincent Pit for identifying
+          this.
 
 2.05  Sat Jul  4 16:33:01 AUSEST 2009
 </diff>
      <filename>Changes</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 #!/usr/bin/perl -w
 use strict;
 use warnings;
-use Test::More tests =&gt; 1;
+use Test::More tests =&gt; 2;
 
 # Under Perl 5.10.x, a string eval can cause a copy to be taken of
 # %^H, which delays stringification of our scope guard objects,
@@ -18,4 +18,22 @@ eval {
     open(my $fh, '&lt;', 'this_file_had_better_not_exist');
 };
 
-is(&quot;$@&quot;,&quot;&quot;,&quot;Autodie should not leak out of scope&quot;);
+TODO: {
+    local $TODO;
+
+    if ( $] &gt;= 5.010 ) {
+        $TODO = &quot;Autodie can leak near string evals in 5.10.x&quot;;
+    }
+
+    is(&quot;$@&quot;,&quot;&quot;,&quot;Autodie should not leak out of scope&quot;);
+}
+
+# However, we can plug the leak with 'no autodie'.
+
+no autodie;
+
+eval {
+    open(my $fh, '&lt;', 'this_file_had_better_not_exist');
+};
+
+is(&quot;$@&quot;,&quot;&quot;,'no autodie should be able to workaround this bug');</diff>
      <filename>t/string-eval-leak.t</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>aaf4bd7ce297d62b043f7254e6cfacabde1dde6e</id>
    </parent>
  </parents>
  <author>
    <name>Paul Fenwick</name>
    <email>pjf@perltraining.com.au</email>
  </author>
  <url>http://github.com/pfenwick/autodie/commit/71b72f81d616ece224e7a29c5c7b7acbe594930d</url>
  <id>71b72f81d616ece224e7a29c5c7b7acbe594930d</id>
  <committed-date>2009-07-05T08:27:28-07:00</committed-date>
  <authored-date>2009-07-05T08:27:28-07:00</authored-date>
  <message>Tests for explicitly plugging leaks with 'no autodie' near string evals.</message>
  <tree>c70de98bbde8725415df33abfe79493b7b7d77da</tree>
  <committer>
    <name>Paul Fenwick</name>
    <email>pjf@perltraining.com.au</email>
  </committer>
</commit>
