php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60653 strpos description is invalid
Submitted: 2012-01-04 12:25 UTC Modified: 2012-01-04 13:37 UTC
From: kuba dot stasiak at gmail dot com Assigned: takagi (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kuba dot stasiak at gmail dot com
New email:
PHP Version: OS:

 

 [2012-01-04 12:25 UTC] kuba dot stasiak at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.strpos#refsect1-function.strpos-
description
---

strpos documentation contains two different, mutually exclusive, descriptions of 
strpos behavior:

1. strpos — Find the position of the first occurrence of a substring in a string
2. Find the numeric position of the last occurrence of needle in the haystack 
string.

The second one appears to be invalid.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-04 13:37 UTC] salathe@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

This was fixed in the documentation sources last Saturday (r321602, http://svn.php.net/viewvc?view=revision&revision=321602).

The updated description can be seen at http://docs.php.net/manual/en/function.strpos.php

The change will be reflected on other manual mirror sites after this coming Friday.
 [2012-01-04 13:37 UTC] salathe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: salathe
 [2012-01-04 13:37 UTC] salathe@php.net
Assigning to committer.
 [2012-01-04 13:37 UTC] salathe@php.net
-Assigned To: salathe +Assigned To: takagi
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 03:00:02 2026 UTC