• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7487: Warning: defined(@array) is deprecated at setlib.cfg

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   patch 6.0.1

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

The apache error log has entries like these:

setlib.cfg: defined(@array) is deprecated at setlib.cfg line 53.
setlib.cfg: \t(Maybe you should just omit the defined()?)

-- TWiki:Main/PeterThoeny - 2014-04-24

This is now in SVN trunk and 6.0 branch.

Fix in twiki/bin/setlib.cfg :

--- ../../TWikiRelease05x01/core/bin/setlib.cfg   2012-02-25 18:15:19.000000000 -0500
+++ bin/setlib.cfg   2014-04-23 20:43:32.000000000 -0400
@@ -50,9 +50,9 @@
 # Prepend to @INC, the Perl search path for modules
 unshift @INC, $twikiLibPath;
 if ($defaultingCPANBASE) {
-   push @INC, @localPerlLibPath if defined @localPerlLibPath;
+   push @INC, @localPerlLibPath if @localPerlLibPath;
 } else {
-   unshift @INC, @localPerlLibPath if defined @localPerlLibPath;
+   unshift @INC, @localPerlLibPath if @localPerlLibPath;
 }
 
 1;                # Return success for module loading

-- TWiki:Main.PeterThoeny - 2014-04-25

ItemTemplate
Summary Warning: defined(@array) is deprecated at setlib.cfg
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4, 6.0.0
SVN Range TWiki-6.0.1-trunk, Wed, 16 Apr 2014, build 27287
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:27315 TWikirev:27316
TargetRelease patch
ReleasedIn 6.0.1
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2014-10-06 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback