PHP 4.0 Bug #4353 Updated: ereg_replace does not work with { or } in FastTemplate implementation

From: Date: Tue, 09 May 2000 04:37:39 +0000
Subject: PHP 4.0 Bug #4353 Updated: ereg_replace does not work with { or } in FastTemplate implementation
Groups: php.dev 
Request: Send a blank email to php-dev+get-18539@lists.php.net to get a copy of this message
ID: 4353 User Update by: ravage@k2ia.com Status: Open Bug Type: Misbehaving function Description: ereg_replace does not work with { or } in FastTemplate implementation Was able to remedy by editing the ereg_replace statement as follows. From $template = ereg_replace("{$key}","$val","$template"); to $template = ereg_replace("\{$key\}","$val","$template"); Essentially added the backslash ('\') to the curly braces. Full Bug description available at: http://bugs.php.net/version4/?id=4353

« previous php.dev (#18539) next »