#25742 [Opn]: smth bad with pear or php
| From: | creator at sacura dot net | Date: | Mon, 06 Oct 2003 08:05:07 +0000 |
| Subject: | #25742 [Opn]: smth bad with pear or php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-22392@lists.php.net to get a copy of this message | ||
ID: 25742
User updated by: creator at sacura dot net
Reported By: creator at sacura dot net
Status: Open
Bug Type: PEAR related
Operating System: windows 2000
PHP Version: 4.3.3
New Comment:
it seems this is preg_replace bug
Previous Comments:
------------------------------------------------------------------------
[2003-10-03 05:42:57] creator at sacura dot net
Description:
------------
Problem with some names of variables in templates files (PEAR/IT).
Reproduce code:
---------------
<?php
require('HTML/Template/IT.php');
$tsql = new HTML_Template_IT();
$tsql->loadTemplateFile("test.sql");
$tsql->setVariable('C2','1');
print "test=". $tsql->get();
?>
and template (test.sql)
{DUMMY}
'{C2}/'
{DUMMY}
Expected result:
----------------
Warning: Compilation failed: nothing to repeat at offset 3 in
c:\php\pear\HTML\Template\IT.php on line 575
test= '/'
Actual result:
--------------
it should be this:
'1/'
I think so.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25742&edit=1