Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Tolerate sections in configLoad

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
bimal
Smarty Elite


Joined: 19 Apr 2007
Posts: 423

PostPosted: Wed Aug 01, 2012 6:12 am    Post subject: Tolerate sections in configLoad Reply with quote

Unfortunately, I found a code snippet:
Code:
$smarty->configLoad('configs.conf', true);

in some of my app.

The error I see is:
Warning: array_flip(): Can only flip STRING and INTEGER values! in D:___\sysplugins\smarty_internal_config.php on line 244 with Smarty @version 3.1-DEV.

It works with non-existing section names, other strings, empty string (''), numerals, numeric 1, but not boolean - true.

Hope, you can fix this later on, and try to access the sections only if they exist.
Back to top
View user's profile Send private message Visit poster's website
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Wed Aug 01, 2012 9:32 pm    Post subject: Reply with quote

This is now fixed in the SVN trunk and will later be included in 3.1.12
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP