Date: 03/17/01
- Next message: Andi Gutmans: "Re: [PHP-DEV] RE: 4.0.5RC1 static build with Apache 1.3.19 problem"
- Previous message: sas <email protected>: "[PHP-DEV] PHP 4.0 Bug #9695 Updated: memory leak when using fsockopen & fclose"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: ppavlovic <email protected>
Operating system: Linux
PHP version: 4.0.1
PHP Bug Type: *Function Specific
Bug description: ereg_replace returns "Warning: Invalid content of \{\}"
I also encountered this problem. I called ereg_replace from function such as this:
function replace_var($var, $replacement, $v)
{
return ereg_replace("\{$var\}", htmlspecialchars($replacement), $v);
}
Call to this function was
$form = replace_var("MODEL", $model, $form);
$form is piece of HTML, and MODEL is template variable defined in HTML code like {MODEL}
$var is passed to my replace_var function as is.
-- Edit Bug report at: http://bugs.php.net/?id=9807&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Andi Gutmans: "Re: [PHP-DEV] RE: 4.0.5RC1 static build with Apache 1.3.19 problem"
- Previous message: sas <email protected>: "[PHP-DEV] PHP 4.0 Bug #9695 Updated: memory leak when using fsockopen & fclose"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

