#25742 [Opn]: smth bad with pear or php
| From: | cynic@php.net | Date: | Wed, 08 Oct 2003 11:14:50 +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-22470@lists.php.net to get a copy of this message | ||
ID: 25742
Updated by: cynic@php.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:
what does $regs contain when you get this error?
Previous Comments:
------------------------------------------------------------------------
[2003-10-06 04:07:54] creator at sacura dot net
In submission "expected result" and "actual result" must be swaped.
------------------------------------------------------------------------
[2003-10-06 04:05:06] creator at sacura dot net
it seems this is preg_replace bug
------------------------------------------------------------------------
[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