#24269 [Opn]: str_replace doesn't accept forth param in 4.3.2.

From: Date: Fri, 20 Jun 2003 16:32:55 +0000
Subject: #24269 [Opn]: str_replace doesn't accept forth param in 4.3.2.
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969354683@lists.php.net to get a copy of this message
ID: 24269 Updated by: philip@php.net 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

« previous php.doc (#969354683) next »