Item13749: Perl's "stat()" will not work with with array arg and other Perl 5.23 compatibilty issues.
Priority: Low
Current State: Closed
Released In: 2.0.2
Target Release: patch
In the perl v5.24 the
stat (probably) will not accept array as argument. (at least 5.23.3 doesn't accepts it).
Therefore the following patch is needed:
--- a/core/lib/Foswiki/Logger/PlainFile.pm
+++ b/core/lib/Foswiki/Logger/PlainFile.pm
@@ -85,7 +85,7 @@ our %nextCheckDue = (
# Symbols used so we can override during unit testing
our $dontRotate = 0;
sub _time { time() }
-sub _stat { stat(@_); }
+sub _stat { stat($_[0]); }
sub new {
my $class = shift;
or more precisely
sub _stat { @_ ? stat($_[0]) : stat() }
see:
https://rt.perl.org/Ticket/Display.html?id=126162
--
JozefMojzis - 24 Sep 2015