php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #51801 wrong number of parameters
Submitted: 2010-05-12 18:08 UTC Modified: 2010-05-12 18:20 UTC
From: deansmithok at yahoo dot co dot uk Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.2.13 OS: windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: deansmithok at yahoo dot co dot uk
New email:
PHP Version: OS:

 

 [2010-05-12 18:08 UTC] deansmithok at yahoo dot co dot uk
Description:
------------
in the documentation 
stristr has 3 parameters
if I use "php --rf stristr"
it shows 2 parameters

Test script:
---------------
try
$a=stristr($haystack,"findme",true);

Expected result:
----------------
I expected it work with the 3rd parameter

Actual result:
--------------
error, Wrong parameter count for stristr() 

Patches

doc (last revision 2010-05-12 16:11 UTC by deansmithok at yahoo dot co dot uk)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-12 18:20 UTC] aharvey@php.net
-Status: Open +Status: Bogus
 [2010-05-12 18:20 UTC] aharvey@php.net
The third parameter was added in version 5.3.0.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 12:00:01 2026 UTC