From:             bking at starbridgesystems dot com
Operating system: WinXP
PHP version:      4.3.2
PHP Bug Type:     Strings related
Bug description:  str_replace doesn't accept forth param in 4.3.2.

Description:
------------
The str_replace funtion doesn't accept the forth parameter in 4.3.2. The
documentation says it will accept four parameters. We need to fix one or
the other.

Reproduce code:
---------------
C:\PHP432>php -q
<? echo str_replace("dumb","dumber","dumb dumb dumb",$count); ?>
^Z
<br />
<b>Notice</b>:  Undefined variable:  count in <b>C:\PHP432\-</b> on line
<b>1</b
><br />
<br />
<b>Warning</b>:  Wrong parameter count for str_replace() in
<b>C:\PHP432\-</b> o
n line <b>1</b><br />


-- 
Edit bug report at http://bugs.php.net/?id=24269&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24269&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24269&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24269&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24269&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24269&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24269&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24269&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24269&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24269&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24269&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24269&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24269&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24269&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24269&r=gnused

Reply via email to