ID: 24269 Updated by: [EMAIL PROTECTED] Reported By: bking at starbridgesystems dot com Status: Open -Bug Type: Strings related +Bug Type: Documentation problem Operating System: WinXP PHP Version: 4.3.2 New Comment:
Currently from the manual: Note: As of PHP 5.0 the number of matched and replaced needles will be returned in count which is passed by reference. This eludes to the fact that the parameter exists since PHP 5.0.0 but can be made clearer. Reclassified->docbug. Previous Comments: ------------------------------------------------------------------------ [2003-06-20 11:28:04] bking at starbridgesystems dot com 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 this bug report at http://bugs.php.net/?id=24269&edit=1 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php