Globals and Warnings

5 views
Skip to first unread message

ProdigyView

unread,
Feb 11, 2012, 6:34:40 PM2/11/12
to mongol...@googlegroups.com
I get this warning:

Strict Standards: Creating default object from empty value in /home/devin/public_html/devin.usethefood.com/public/site/libraries/he2_mongolantern/Indexer/MongoLanternIndexer.php on line 50 Invalid Lantern Dictionary version. Required version: 0.6 Updating Dictionary... Dictionary: Disabled

And it comes from this line:

//  set dictionary as enabled by default
$MongoLanternGLOBAL -> dictionaryEnabled = true;

For a better design, shouldn't globals not be used? Rather have a class that possibly hold static and uses get and set methods for passing around variables?

Sougata Pal.

unread,
Feb 12, 2012, 12:32:52 AM2/12/12
to mongol...@googlegroups.com
Yes.  We are having that planning in next release.
--
Thanks
Sougata Pal.
Chief Architect, Techunits
http://in.linkedin.com/in/skallpaul
Contact: +91 9051042886

Sougata Pal.

unread,
Feb 12, 2012, 1:43:12 AM2/12/12
to mongol...@googlegroups.com
I just verified your code you submitted contains no initialisation of global vars class. I just fixed it and committed revision to SVN repo. U can checkout from there directly.

svn checkout svn://svn.code.sf.net/p/mongolantern/code/trunk mongolantern

Devin Dixon

unread,
Feb 12, 2012, 6:32:50 AM2/12/12
to mongol...@googlegroups.com
I think the autoload function is great! That was going to be one of my next suggestions.

Sougata Pal.

unread,
Feb 12, 2012, 6:34:31 AM2/12/12
to mongol...@googlegroups.com
Ok.

Thanks a lot. I have already released the code to sourceforge with inbuilt CSVIndexer. You can try and let me know your reviews.
Reply all
Reply to author
Forward
0 new messages