[PHPTAL] Incompatibility between PHPTAL exceptions and xdebug

2009-10-05 Thread Iván -DrSlump- Montes
Hi,

When throwing a PHPTAL_TemplateException (or a descendant of it) exception
in an environment with the Xdebug extension activated, it results in a fatal
error, triggered by Xdebug, since it checks the types of the message,
file and line properties (string, string and integer respectively).

PHPTAL gives by default a value of false to the line property (so it gets
a boolean type). This can be easily solved by casting to integer the
assigments to the line property in Exception.php. Example:

$this-line = (int) $this-srcLine;


regards,
/imv
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [PHPTAL] Incompatibility between PHPTAL exceptions and xdebug

2009-10-05 Thread Kornel Lesiński
On 05-10-2009 at 15:11:30 Iván -DrSlump- Montes drsl...@pollinimini.net  
wrote:


PHPTAL gives by default a value of false to the line property (so it  
gets a boolean type). This can be easily solved by casting to integer the

assigments to the line property in Exception.php. Example:

$this-line = (int) $this-srcLine;


OK, I've added this. Thanks.

--
regards, Kornel

___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal