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 smarty3 Turns 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 package My 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> -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 5.19.0-2-amd64 (SMP w/12 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages smarty3 depends on: ii php 2:8.1+92 ii php-common 2:92 ii php8.1 [php] 8.1.7-1 ii php8.1-cli [php-cli] 8.1.7-1+b1 smarty3 recommends no packages. smarty3 suggests no packages. -- no debconf information