php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #21456 undocumented feature of strstr() & co.
Submitted: 2003-01-06 03:09 UTC Modified: 2003-01-06 03:12 UTC
From: andrey@php.net Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.3.0 OS: all
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: andrey@php.net
New email:
PHP Version: OS:

 

 [2003-01-06 03:09 UTC] andrey@php.net
 strstr() and company has undocumented feature for the way how the second parameter is used. In the moment the second parameter is defined as string but must be mixed. When int instead of string is passed the ascii symbol of that int is used as a needle.
For reference a mail from Ilia to php-dev : 
http://marc.theaimsgroup.com/?l=php-dev&m=104179161510583&w=2

Andrey

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 08:01:31 2024 UTC