ID: 25632 Updated by: [EMAIL PROTECTED] Reported By: info at comsen dot de -Status: Open +Status: Bogus Bug Type: Strings related Operating System: Apache httpd 1.3.26 PHP Version: 4.3.1 New Comment:
1. Too old PHP version (we're at 4.3.3 already) 2. Your example script has 2 parse errors for starters..plus you propably want to use preg_replace() anyway. Previous Comments: ------------------------------------------------------------------------ [2003-09-23 07:01:27] info at comsen dot de Description: ------------ I have a text with placeholders for images: ##-1 -> img No 1 ##-2 img No 2 etc. It works fine with the reproduce code as long as the number is a single digit: with numbers higher then 9 the image will be shown followed by the last digit. Is it a bug? Reproduce code: --------------- $text "abc def ##-23 yxz"; $pic = "<img src = 'img-23'>"; $text_new = str_replace(*##-'.$pic, $image, $text); Expected result: ---------------- (image shown) Actual result: -------------- (image shown)3 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25632&edit=1