php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76764 Wrong parameter type for stripos()
Submitted: 2018-08-18 15:23 UTC Modified: 2018-08-18 17:00 UTC
From: phphlx at 163 dot com Assigned: cmb (profile)
Status: Closed Package: Strings related
PHP Version: 7.0.31 OS: windows10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: phphlx at 163 dot com
New email:
PHP Version: OS:

 

 [2018-08-18 15:23 UTC] phphlx at 163 dot com
Description:
------------
---
From manual page: http://www.php.net/function.stripos
---

the type of the second param maybe mixed, not string, 哈哈


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-18 16:33 UTC] cmb@php.net
-Summary: something maybe wrong in the website document +Summary: Wrong parameter type for stripos() -Status: Open +Status: Verified -Package: Website problem +Package: Strings related
 [2018-08-18 16:33 UTC] cmb@php.net
You're right, thanks!  strrpos() and strripos() have the same
issue.  It is noteworthy to mention that passing non-strings is
deprecated as of PHP 7.3.0[1], though.

[1] <https://wiki.php.net/rfc/deprecations_php_7_3#string_search_functions_with_integer_needle>
 [2018-08-18 17:00 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=345530
Log: Fix #76764: Wrong parameter type for stripos()
 [2018-08-18 17:00 UTC] cmb@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cmb
 [2018-08-18 17:00 UTC] cmb@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.
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=2e80c71b3234e9c0bb1da8ed8a3cbc7f6438b829
Log: Fix #76764: Wrong parameter type for stripos()
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 23:01:29 2024 UTC