[NEW RELEASE] Sifo 2.6

16 views
Skip to first unread message

Albert Lombarte

unread,
Jul 26, 2012, 7:17:14 AM7/26/12
to sif...@googlegroups.com
Hello,

The revision 609a6f3 is the candidate for the next release. After some days in production servers will be tagged as sifo-2.6 and will be downloaded as ZIP/Tar under https://github.com/alombarte/SIFO/tags

Summary (see the log for complete history):
  • CHANGE: Changes and improvements on the translator tool
  • NEW: Added a PHP SQL parser to validate queries and to facilitate unit testing
  • NEW: Several Unit testing improvements and libraries
  • NEW: Added mobile detection (Client::isMobile)
  • BUGFIX: Fix enable/disable debug using URL.
  • CHANGE: Mark direct access Controller->$hasDebug as deprecated
  • NEW: Documentation in debug_config.config
  • NEW: Debug refactoring and new features added
  • NEW: Added "normalize" flag in smarty fill function to allow passing parameters as they are
  • NEW: Added custom_tpl Smarty modifier to common instance to allow all instances that use "extends" and "include" Smarty functions pick the proper template in the inheritance
  • BUGFIX: Fixed incorrect throw Exceptions.
  • NEW: Rebuild configuration files in cascade. It generates the current instance files and the files of all their inheritance instances.
  • BUGFIX: Fix syntax error in findi18n related to namespaces.
  • BUGFIX: Search: replace include by include_once.
  • BUGFIX: Fix error in queries debug: When one query fails was not showed in query debug as an error
  • BUGFIX: Corrected Twitter OAuth namespace
  • BUGFIX: Escaping SQL queries in debug to avoid broken queries containing < and > characters.
  • NEW: Debug messages. Allow to store variables/messages to show them in the debug. Now they are showed in the browser console.
  • NEW: - Added /instances/common/templates/_smarty/(cache|compile|configs) folders for easier start
  • BUGFIX: OpenInviter fix for namespaces
  • BUGFIX: Updated Browscap Library and forced to use "LOCAL" update system. [IMPORTANT] You should remove /libs/Browscap/browscap.ini & cache.php files, so now they are included in SIFO and will be updated in regular basis. 
  • BUGFIX:  Change include_once by include in rebuild regeneration.
  • NEW: Added gitignore to logs folder to be able to create this needed empty folder
  • NEW: Added escapeSqlString method to Database class
  • NEW: Allow possibility in i18N.php to load other instance translations.
  • CHANGE: Minor changes in documentation
  • NEW - Rebuild: Change rebuild classes, configs, locales and templates files behavior. Children instances include the parent instance config. Now, each instance only will have in his configs their own changes.
  • BUGFIX: Sphinx Search: Fix Smarty notices. Client: improve empty check.

Albert Garcia

unread,
Jul 30, 2012, 4:09:06 AM7/30/12
to sif...@googlegroups.com
About one of the changes included in this release:

We've detected some strange behaviours when using the new "isMobile" feature included in the last version of Browscap (and extended in Client class). It seems that is related to the regular expression this feature is using: it caused some strange Apache "segmentation fault" errors, launching blank pages without any PHP error. 

This error only appeared under some environments, so it should be used with CAUTION. Maybe it will be helpful to include some warning messages in the Browscap class & isMobile method headers, don't you think?


Regards,
--
Albert García Gibert
email. albert...@gibert.es
blog. http://obokaman.com
twitter. @obokaman


2012/7/26 Albert Lombarte <alom...@gmail.com>

Albert Lombarte

unread,
Jul 30, 2012, 4:50:44 AM7/30/12
to sif...@googlegroups.com
Any improvements you can make are welcome, they will be included in sifo-2.7

2012/7/30 Albert Garcia <albert...@gibert.es>

Albert Garcia

unread,
Jul 30, 2012, 5:03:57 AM7/30/12
to sif...@googlegroups.com
Forget about my last email (problems with middle-term memory, you know). 

Due to problems with isMobile regular expression at Browscap, we already implemented a different method (alternative regular expression based on USER-AGENT taken from http://detectmobilebrowsers.com/), so on Sifo 2.6 is completely safe to use Client::isMobile method to detect mobile devices from PHP.

Sorry!

--
Albert García Gibert
email. albert...@gibert.es
blog. http://obokaman.com
twitter. @obokaman


2012/7/30 Albert Lombarte <alom...@gmail.com>
Reply all
Reply to author
Forward
0 new messages