Author |
Message |
Topic: filter or documentation error |
Grigori
Replies: 2
Views: 7163
|
Forum: Bugs Posted: Wed Jun 27, 2012 10:56 am Subject: filter or documentation error |
thanks,
I guess this is done by defining a modifier in
http://www.smarty.net/docs/en/variable.default.modifiers.tpl
? |
Topic: plugin parameter names contain tabs |
Grigori
Replies: 1
Views: 5010
|
Forum: Bugs Posted: Tue Jun 26, 2012 9:41 am Subject: plugin parameter names contain tabs |
I write in the template
{categoryProducts
limit=200
category_id=17
template='productTemplateExample.tpl'
}
var_dump($params) in the plugin gives me
array (size=9)
... |
Topic: filter or documentation error |
Grigori
Replies: 2
Views: 7163
|
Forum: Bugs Posted: Tue Jun 26, 2012 8:05 am Subject: filter or documentation error |
I follow the documentation
http://www.smarty.net/v3_overview
and write
$smarty->registerFilter('variable','htmlspecialchars');
It gives me an error:
PHP warning
htmlspecialchar ... |
Topic: 3.1.7 - template compilation error |
Grigori
Replies: 10
Views: 23552
|
Forum: Bugs Posted: Thu Dec 22, 2011 8:33 pm Subject: 3.1.7 - template compilation error |
Grigori
Sorry, I missed annother location.
The trunk is updated once again.
Can you retry?
Wow! Looks working now on my local server. I will test on other servers as well, if it comes out it ... |
Topic: 3.1.7 - template compilation error |
Grigori
Replies: 10
Views: 23552
|
Forum: Bugs Posted: Thu Dec 22, 2011 6:23 pm Subject: 3.1.7 - template compilation error |
This is fixed in the SVN trunk version and will be included in 3.1.8.
Please confirm if this is working at your place
It gives a template error:
$ php -d mbstring.func_overload=7 -d mbstr ... |
Topic: 3.1.7 - template compilation error |
Grigori
Replies: 10
Views: 23552
|
Forum: Bugs Posted: Thu Dec 22, 2011 6:08 pm Subject: 3.1.7 - template compilation error |
Please keep your pants on. Anyone using func_overload (for whatever register_globals-ish reasons) please revert back to 3.1.6 for the time being.
-> http://code.google.com/p/smarty-php/issues/de ... |
Topic: 3.1.7 - template compilation error |
Grigori
Replies: 10
Views: 23552
|
Forum: Bugs Posted: Thu Dec 22, 2011 8:38 am Subject: 3.1.7 - template compilation error |
Why do you write
Not sure if we can find a workaround
?
when you have a workaround already?
You are detecting mbstring.func_overload in smarty_internal_templatelexer.php (line 90)
and branch ... |
Topic: 3.1.7 - template compilation error |
Grigori
Replies: 10
Views: 23552
|
Forum: Bugs Posted: Wed Dec 21, 2011 10:00 pm Subject: 3.1.7 - template compilation error |
The bug 27421 is not involved (it's fixed). With mbstring.func_overload=2 and mbstring.internal_encoding=UTF-8 the code
$v = 'русский{Test::foo& ... |
Topic: 3.1.7 - template compilation error |
Grigori
Replies: 10
Views: 23552
|
Forum: Bugs Posted: Wed Dec 21, 2011 7:51 pm Subject: 3.1.7 - template compilation error |
We can reproduce this issue on linux with PHP 5.3.6 and FreeBsd with 5.2.17, MacOS with PHP 5.4 RC3
But I can't reproduce it on the same freebsd server on 5.3.3 cli though (with the same php.ini)
... |
Topic: 3.1.7 - template compilation error |
Grigori
Replies: 10
Views: 23552
|
Forum: Bugs Posted: Wed Dec 21, 2011 10:33 am Subject: 3.1.7 - template compilation error |
Hi,
I found an issue when compiling a template with the following conditions:
* mbstring.func_overload = 2 (string functions are replaced by the mbstring ones)
* Template is inherited
* Non-latin ... |
|