[ phpwiki-Bugs-3492109 ] php-53 throws substr warning on every page if LANG is unset

SourceForge.net <[email protected]> Thu, 23 Feb 2012 07:17:10 -0800
Newsgroups gmane.comp.web.wiki.phpwiki.bugs
Message-ID <[email protected]>
Bugs item #3492109, was opened at 2012-02-23 07:17
Message generated for change (Tracker Item Submitted) made by philiph
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106121&aid=3492109&group_id=6121

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: version 1.4.x (current)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Philip J. Hollenback (philiph)
Assigned to: Nobody/Anonymous (nobody)
Summary: php-53 throws substr warning on every page if LANG is unset

Initial Comment:
If you leave LANG blank in the config.ini (the default) and you are running php-53, there's a php warning thrown on every page:

Warning: "substr() expects parameter 3 to be long, string given"

I'm running the phpwiki-1.4.0 from svn trunk as of 2/20/12.

Specifying an explicit LANG fixes this, but the config.ini comments indicate a blank entry is valid.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106121&aid=3492109&group_id=6121

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d