--TEST-- Test str_replace() function basic function --INI-- precision=14 --FILE-- getMessage(), "\n"; } var_dump( $fp_copy ); fclose($fp); ?> --EXPECTF-- *** Testing str_replace() on basic operations *** string(0) "" string(4) "tbst" string(0) "" int(0) string(1) "q" int(1) string(0) "" int(0) str_replace(): Argument #1 ($search) must be of type array|string, resource given resource(%d) of type (stream)