Bug #64702 [Opn]: this is bug?

From: Date: Wed, 24 Apr 2013 01:27:32 +0000
Subject: Bug #64702 [Opn]: this is bug?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-178601@lists.php.net to get a copy of this message
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
 Type:               Bug
 Package:            *General Issues
 Operating System:   windows xp
 PHP Version:        5.3.24
 Block user comment: N
 Private report:     N

 New Comment:

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.
"


Previous Comments:
------------------------------------------------------------------------
[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)

« previous php.bugs (#178601) next »