PHP 4.0 Bug #5833: ereg_replace fails to use correct variable type
| From: | cveld at bigfoot dot com | Date: | Fri, 28 Jul 2000 11:06:46 +0000 |
| Subject: | PHP 4.0 Bug #5833: ereg_replace fails to use correct variable type | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-26698@lists.php.net to get a copy of this message | ||
From: cveld@bigfoot.com
Operating system: win32
PHP version: 4.0.1pl2
PHP Bug Type: Misbehaving function
Bug description: ereg_replace fails to use correct variable type
<?
// bug!!! try it out, the example does not print 3 but a weird box.
$num= 3;
$str= "%test%";
$str= ereg_replace("%test%", $num, $str);
echo $str;
?>