Bug #64702 [Opn->Nab]: this is bug?
Edit report at https://bugs.php.net/bug.php?id=64702&edit=1
ID: 64702
Updated by: laruence@php.net
Reported by: lgynove at 163 dot com
Summary: this is bug?
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: windows xp
PHP Version: 5.3.24
Block user comment: N
Private report: N
New Comment:
as previous comment said
Previous Comments:
------------------------------------------------------------------------
[2013-04-24 01:27:32] laruence@php.net
this isn't bug
"
If needle is not a string, it is converted to an integer and applied as the
ordinal value of a character.
"
------------------------------------------------------------------------
[2013-04-24 01:08:47] lgynove at 163 dot com
Description:
------------
this is bug?
Test script:
---------------
var_dump(strpos(1111, 11)) //false
var_dump(strpos(1111, '11')) //0
Expected result:
----------------
var_dump(strpos(1111, 11)) //false
var_dump(strpos(1111, '11')) //0
Actual result:
--------------
var_dump(strpos(1111, 11)) //false
var_dump(strpos(1111, '11')) //0
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64702&edit=1
Thread (3 messages)