Control: forwarded -1 https://github.com/smarty-php/smarty/issues/822
Hi Ed, thanks for letting me know. On Mo 10 Okt 2022 23:43:15 CEST, Ed Martin wrote:
Package: smarty3 Version: 3.1.45-1 Severity: grave Justification: renders package unusable Dear Maintainer,I'm testing some build scripts and testing my package on a VM running bookworm, my application uses smarty3Turns out that the latest smarty3 is broken, smarty_internal_templateparser.php has this bit of code between two classes:// line "./lexer/smarty_internal_templateparser.y" 0 // line 11 "./lexer/smarty_internal_templateparser.y"and that stray 0 breaks the template parser...since the template parser is really all smarty does, this breaks the packageMy test case for the bug report is: <?php require_once('/usr/share/php/smarty3/Smarty.class.php'); $smarty = new Smarty(); $smarty->setTemplateDir('/var/www/html/'); $smarty->testInstall(); // assign some content. This would typically come from // a database or other source, but we'll use static // values for the purpose of this example. $smarty->assign('name', 'george smith'); $smarty->assign('address', '45th & Harris'); $smarty->debugging = true; // display it $smarty->display('test.tpl'); ?> And test.tpl: <html> <head> <title>Info</title> </head> <body> <pre> User Information: Name: {$name} Address: {$address} </pre> </body> </html>
I have just filed an upstream bug report for this: https://github.com/smarty-php/smarty/issues/822 Let's see if we get some help with this from upstream. Mike -- DAS-NETZWERKTEAM c\o Technik- und Ökologiezentrum Eckernförde Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde mobile: +49 (1520) 1976 148 landline: +49 (4351) 850 8940 GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31 mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de
pgpmD3kiu_NeU.pgp
Description: Digitale PGP-Signatur