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

Search found 3 matches
Smarty Forum Index
Author Message
  Topic: Broken 5.3 compatibility in 'empty($smarty.capture.name)'
a.shpota

Replies: 3
Views: 18105

PostForum: Bugs   Posted: Mon Jun 06, 2016 1:57 pm   Subject: Broken 5.3 compatibility in 'empty($smarty.capture.name)'
Dependence in composer.json allows to use PHP version >= 5.2
https://github.com/smarty-php/smarty/blob/master/composer.json#L28

For larger projects, update php is not always easy.
  Topic: Broken 5.3 compatibility in 'empty($smarty.capture.name)'
a.shpota

Replies: 3
Views: 18105

PostForum: Bugs   Posted: Sat Jun 04, 2016 10:09 am   Subject: Broken 5.3 compatibility in 'empty($smarty.capture.name)'
smarty code

{capture name=capture_name}
capture content
{/capture}

{if !empty($smarty.capture.capture_name)}
{$smarty.capture.capture_name}
...
  Topic: Found a bug in smarty_internal_templatelexer.php
a.shpota

Replies: 3
Views: 19993

PostForum: Bugs   Posted: Fri Jun 03, 2016 9:07 am   Subject: Found a bug in smarty_internal_templatelexer.php
Hi.
I have the same problem and and think that's enough to fix delimiters from '/' to '~' in regular expressions:

https://github.com/smarty-php/smarty/blob/master/libs/sysplugins/smarty_internal_t ...
 
Page 1 of 1
All times are GMT
Jump to:  


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