php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53391 Scalar type hint reflection method name inconsistency
Submitted: 2010-11-23 20:52 UTC Modified: 2011-08-30 12:55 UTC
From: seva dot lapsha at gmail dot com Assigned:
Status: Not a bug Package: Reflection related
PHP Version: trunk-SVN-2010-11-23 (SVN) OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 + 48 = ?
Subscribe to this entry?

 
 [2010-11-23 20:52 UTC] seva dot lapsha at gmail dot com
Description:
------------
Scalar type hint implementation introduces inconsistency in type naming.
The canonic name for float/double/real is float.
But the introduced method for them is ::isDouble().

@see http://php.net/manual/en/language.types.float.php
@see http://php.net/manual/en/function.is-float.php
@see http://php.net/manual/en/function.is-double.php (alias)
@see http://php.net/manual/en/function.is-real.php (alias)
@see http://php.net/manual/en/function.floatval.php
@see http://php.net/manual/en/function.doubleval.php (alias)
@see http://php.net/manual/en/class.splfloat.php



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-30 12:55 UTC] bjori@php.net
-Status: Open +Status: Bogus
 [2011-08-30 12:55 UTC] bjori@php.net
Scalar type hints got removed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 16:01:28 2024 UTC