#25742 [Fbk->Opn]: smth bad with pear or php

From: Date: Fri, 10 Oct 2003 11:25:07 +0000
Subject: #25742 [Fbk->Opn]: smth bad with pear or php
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22553@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: Feedback +Status: Open Bug Type: PEAR related Operating System: windows 2000 PHP Version: 4.3.3 New Comment: variable $regs is clean Previous Comments: ------------------------------------------------------------------------ [2003-10-08 07:15:38] cynic@php.net updating status... ------------------------------------------------------------------------ [2003-10-08 07:14:50] cynic@php.net what does $regs contain when you get this error? ------------------------------------------------------------------------ [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

« previous php.pear.dev (#22553) next »