Package: php-html-template-it Version: 1:1.2.1-2 Severity: grave Justification: renders package unusable
The package does not render blocks correctly, causing any PHP templates using the library not to work correctly. Installing directly from pear fixes the problem. pear install --alldeps HTML_Template_IT which installs channel://pear.php.net/HTML_Template_IT-1.2.1. For instance the following code from /usr/share/doc/php-html-template-it/ <?php require_once 'HTML/Template/IT.php'; $data = array ( '0' => array('Stig', 'Bakken'), '1' => array('Martin', 'Jansen'), '2' => array('Alexander', 'Merz') ); $tpl = new HTML_Template_IT('./templates'); $tpl->loadTemplatefile('main.tpl.htm', true, true); foreach ($data as $name) { foreach ($name as $cell) { // Assign data to the inner block $tpl->setCurrentBlock('cell'); $tpl->setVariable('DATA', $cell); $tpl->parseCurrentBlock(); } // Assign data and the inner block to the // outer block $tpl->setCurrentBlock('row'); $tpl->parseCurrentBlock(); } // print the output $tpl->show(); ?> gives the following html: <html> <tableborder> <tr><td>Stig</td><td>Bakken</td><td>{DATA}</td></tr> <tr><td>Martin</td><td>Jansen</td><td>{DATA}</td></tr> <tr><td>Alexander</td><td>Merz</td><td>{DATA}</td></tr> <tr><td>{DATA}</td></tr> </table> </html> Whereas under the pear version it produces the following html: <html> <tableborder> <tr><td>Stig</td><td>Bakken</td></tr> <tr><td>Martin</td><td>Jansen</td></tr> <tr><td>Alexander</td><td>Merz</td></tr> </table> </html> As you can see, the current package is completely broken. Rory -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/bash Versions of packages php-html-template-it depends on: ii php-pear 5.2.9.dfsg.1-2 PEAR - PHP Extension and Applicati php-html-template-it recommends no packages. php-html-template-it suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org