Edit report at https://bugs.php.net/bug.php?id=64702&edit=1
ID: 64702 Updated by: larue...@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