Smarty Bug... at least

From: Date: Thu, 31 Oct 2002 16:05:32 +0000
Subject: Smarty Bug... at least
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6295@lists.php.net to get a copy of this message
Scott Matthewman wrote:
-----Original Message----- From: M Mohr [mailto:messju@lammfellpuschen.de] hello, On Thu, Oct 31, 2002 at 12:29:33PM +0100, Manuel Polo wrote:
Hi! <?xml version="1.0" encoding="{$pag_encoding}"?> This fails... at least on my configuration and latest Smarty (v2.3)
     
short_open_tag=off in your php.ini may help.
I'm using Smarty 2.3.0 on PHP 4.2.2 with the short_open_tag setting on, and haven't experienced this problem when using XML templates. It's possible that the MIME type is not being interpreted correctly. Issuing a header("Content-type: text/xml"); line before outputting your text may be of benefit. Scott
I think that the mime of this document is not relevant at all.. did that line work really on your config?? Lets see: This line works withing a smarty template (first line of course): <?xml version="1.0" encoding="UTF"?> But this doesn´t: <?xml version="1.0" encoding="{$foo}"?> It generates a parse error on compiled template: *Parse error*: parse error in */home...../includes/smarty/templates_c/%%851/%%851085415/header.xhtml.php* on line 1 So I think about a bug... -- Manuel Polo Tolón Dpto. I+D Servicios de Telefonía Avanzada Juan De la Cierva #23 50014 Zaragoza Tlf. +034 902 11 12 21 ___________________________________________________________________________ _ _ / La información incluida en el presente correo electrónico es CONFIDENCIAL, | siendo para el uso exclusivo del destinatario arriba mencionado. Si usted | lee este mensaje y no es el destinatario señalado, el empleado o el agente | responsable de entregar el mensaje al destinatario, o ha recibido esta | comunicación por error, le informamos que está totalmente prohibida | cualquier divulgación, distribución o reproducción de esta comunicación, y | le rogamos que nos lo notifique, nos devuelva el mensaje original a la | dirección arriba mencionada y borre el mensaje. | Gracias. \___________________________________________________________________________ _ _

« previous php.smarty.general (#6295) next »