Req #74316 [Dup->Sus]: i need a function __toInt
| From: | cmb@php.net | Date: | Mon, 27 Mar 2017 17:57:46 +0000 |
| Subject: | Req #74316 [Dup->Sus]: i need a function __toInt | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-208094@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74316&edit=1
ID: 74316
Updated by: cmb@php.net
Reported by: xltxlm at qq dot com
Summary: i need a function __toInt
-Status: Duplicate
+Status: Suspended
Type: Feature/Change Request
Package: Scripting Engine problem
Operating System: window 10
PHP Version: 7.1.3
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Oops, didn't really read the subject line! A magic ::__toInt()
method would require the RFC process, so feel free to start it[1]!
[1] <https://wiki.php.net/rfc/howto>
Previous Comments:
------------------------------------------------------------------------
[2017-03-27 17:36:09] cmb@php.net
This appears to be a duplicate of bug #74289.
------------------------------------------------------------------------
[2017-03-27 04:46:11] xltxlm at qq dot com
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 this bug report at https://bugs.php.net/bug.php?id=74316&edit=1