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
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: 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

Pull Requests

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Aug 13 05:00:03 2025 UTC