- update for PHP 5.4 compatibility
- reformat source to PSR-2 standard


git-svn-id: http://smarty-php.googlecode.com/svn/trunk/distribution/libs@4756 9dce5a81-9a42-0410-99e4-3799d3902e7f