Author |
Message |
Topic: Bitwise operations |
qUJy5Xg0ve7k
Replies: 1
Views: 5500
|
Forum: General Posted: Mon Mar 29, 2021 8:59 pm Subject: Bitwise operations |
I noticed between versions of Smarty, the following code changed:
1: {2&0x2}
Results:
Version 3.1.15:
1:0
Version 3.1.14:
1:2
I don't see anything in the changelog to ... |
Topic: Trying to upgrade, having trouble with slashes and capture |
qUJy5Xg0ve7k
Replies: 19
Views: 14349
|
Forum: General Posted: Mon Aug 27, 2018 4:08 pm Subject: Trying to upgrade, having trouble with slashes and capture |
Update for future inquirers:
The bug fix was committed here: https://github.com/smarty-php/smarty/commit/8e09f97a147d6c637e541f61887b1ae893763bec
The code change is in libs/sysplugins/smarty_in ... |
Topic: Trying to upgrade, having trouble with slashes and capture |
qUJy5Xg0ve7k
Replies: 19
Views: 14349
|
Forum: General Posted: Fri Aug 24, 2018 12:57 am Subject: Trying to upgrade, having trouble with slashes and capture |
So you are suggesting that I put each column in its own file, call the files foo.tmpl, bar.tmpl, then do the include in the for loop instead of the capture? |
Topic: Trying to upgrade, having trouble with slashes and capture |
qUJy5Xg0ve7k
Replies: 19
Views: 14349
|
Forum: General Posted: Wed Aug 22, 2018 10:59 pm Subject: Trying to upgrade, having trouble with slashes and capture |
In my example, I created foo and bar. So I would just have
$arr = array('bar', 'foo');
I created the names, so it's easy to have them in an array. I'm not sure why that would be impo ... |
Topic: Trying to upgrade, having trouble with slashes and capture |
qUJy5Xg0ve7k
Replies: 19
Views: 14349
|
Forum: General Posted: Wed Aug 22, 2018 7:25 pm Subject: Trying to upgrade, having trouble with slashes and capture |
Unfortunately that example does not satisfy my requirement. I have a bunch of things that have been captured (even if I go through and update them all to use assign) and a separate list of strings co ... |
Topic: Trying to upgrade, having trouble with slashes and capture |
qUJy5Xg0ve7k
Replies: 19
Views: 14349
|
Forum: General Posted: Wed Aug 22, 2018 2:24 pm Subject: Trying to upgrade, having trouble with slashes and capture |
It worked in 3.1.27. It no longer works. Where I come from, that's a bug.
Is there a workaround for looping over a list of values and printing out the captures? It's a very significant use case i ... |
Topic: Trying to upgrade, having trouble with slashes and capture |
qUJy5Xg0ve7k
Replies: 19
Views: 14349
|
Forum: General Posted: Mon Aug 20, 2018 2:24 pm Subject: Trying to upgrade, having trouble with slashes and capture |
Your example code shows the exact same behavior as mine. $smarty.capture.$txt does not print. |
Topic: Trying to upgrade, having trouble with slashes and capture |
qUJy5Xg0ve7k
Replies: 19
Views: 14349
|
Forum: General Posted: Sun Aug 19, 2018 9:27 pm Subject: Trying to upgrade, having trouble with slashes and capture |
Okay so it seems like this is a bug. How do I report a bug? |
Topic: Yet another problem, this time with an infinite loop. |
qUJy5Xg0ve7k
Replies: 5
Views: 4922
|
Forum: General Posted: Sat Aug 18, 2018 5:30 pm Subject: Yet another problem, this time with an infinite loop. |
Okay so it seems like it was a bug in 3.1.27 and it is fixed by 3.1.32. But I can't upgrade to that one because of the other bug, which still exists in 3.1.33, (https://www.smarty.net/forums/viewtopi ... |
Topic: Yet another problem, this time with an infinite loop. |
qUJy5Xg0ve7k
Replies: 5
Views: 4922
|
Forum: General Posted: Sat Aug 18, 2018 4:46 pm Subject: Yet another problem, this time with an infinite loop. |
So you're saying I'm lying? Well that's a bizarre response. The code is all right there, you can test it for yourself. It works in 3.1.11, infinite loop in 3.1.27. Changing it to fetch is still an i ... |
Topic: Yet another problem, this time with an infinite loop. |
qUJy5Xg0ve7k
Replies: 5
Views: 4922
|
Forum: General Posted: Fri Aug 17, 2018 10:18 pm Subject: Yet another problem, this time with an infinite loop. |
Okay I've come up with some simple code to display the issue:
test.php:
<?php
require_once 'smarty/Smarty.class.php';
$smarty = new Smarty();
$smarty->addTemplateDir( ... |
Topic: Yet another problem, this time with an infinite loop. |
qUJy5Xg0ve7k
Replies: 5
Views: 4922
|
Forum: General Posted: Fri Aug 17, 2018 10:03 pm Subject: Yet another problem, this time with an infinite loop. |
So I guess I can't update to 3.1.32 (https://www.smarty.net/forums/viewtopic.php?p=93618) and now it looks like I can't update to 3.1.27 either. Somehow the function $smarty->display appears to ha ... |
Topic: Trying to upgrade, having trouble with slashes and capture |
qUJy5Xg0ve7k
Replies: 19
Views: 14349
|
Forum: General Posted: Thu Aug 16, 2018 5:55 pm Subject: Trying to upgrade, having trouble with slashes and capture |
Alright so here is an entire piece of code:
test.php:
<?php
require_once 'smarty/Smarty.class.php';
$smarty = new Smarty();
$smarty->addTemplateDir('../Smarty');
$ ... |
Topic: Trying to upgrade, having trouble with slashes and capture |
qUJy5Xg0ve7k
Replies: 19
Views: 14349
|
Forum: General Posted: Thu Aug 16, 2018 4:18 am Subject: Trying to upgrade, having trouble with slashes and capture |
@bsmither you are correct, the first and fourth lines print, with two blank lines in the middle. I believe the middle two print out in 3.1.27, I know for a fact the second one does because that's how ... |
Topic: Trying to upgrade, having trouble with slashes and capture |
qUJy5Xg0ve7k
Replies: 19
Views: 14349
|
Forum: General Posted: Wed Aug 15, 2018 8:54 pm Subject: Trying to upgrade, having trouble with slashes and capture |
I upgraded version by version and made a bunch of changes to the point where my page finally renders. That's some accomplishment. But versions 3.1.28 through 3.1.32-ish complain about slashes such a ... |
|