PHP4 Bug #1787: str_replace, ereg_replace problems

From: Date: Wed, 21 Jul 1999 08:32:40 +0000
Subject: PHP4 Bug #1787: str_replace, ereg_replace problems
Groups: php.dev 
Request: Send a blank email to php-dev+get-8853@lists.php.net to get a copy of this message
From: webmaster@softgallery.com Operating system: Linux debian 2.1 PHP version: 4.0 Beta 1 PHP Bug Type: Parser error Bug description: str_replace, ereg_replace problems I found two bugs in the new parser. First str_replace does not behave correctly : $Content = str_replace("{$Toreplace}",$Val,$Content); with $Val a string, does not remove the {} (template) Then ereg_replace : $Content = ereg_replace("\{$ARemplacer\}",$Val,$Content); with $Val an int put some garbage characters in the output instead of the value of $Val I hope this helps.

« previous php.dev (#8853) next »