[PHP-BUG] Req #74316 [NEW]: i need a function __toInt

[email protected] ("xltxlm at qq dot com") Mon, 27 Mar 2017 04:46:12 GMT
Newsgroups php.standards
Message-ID <[email protected]>
From:             xltxlm at qq dot com
Operating system: window 10
PHP version:      7.1.3
Package:          PHP Language Specification
Bug Type:         Feature/Change Request
Bug description:i need a function __toInt

Description:
------------
sorry for my Poor English. i'am a chinese.


this is ok

https://gist.github.com/anonymous/2cd04f8d57866f4419abf821170ba370

this is not ok

https://gist.github.com/anonymous/a1d1b5d5fed9148ac17de9df5a5c6937




Expected result:
----------------
it can run normal 
https://gist.github.com/anonymous/a1d1b5d5fed9148ac17de9df5a5c6937



-- 
Edit bug report at https://bugs.php.net/bug.php?id=74316&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=74316&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=74316&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=74316&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=74316&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=74316&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=74316&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=74316&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=74316&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=74316&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=74316&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=74316&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=74316&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=74316&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74316&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=74316&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=74316&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=74316&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74316&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=74316&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=74316&r=mysqlcfg