Bug #55824 [Opn->Bgs]: Type Check / Hint
| From: | felipe@php.net | Date: | Sun, 02 Oct 2011 16:42:17 +0000 |
| Subject: | Bug #55824 [Opn->Bgs]: Type Check / Hint | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164031@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55824&edit=1
ID: 55824
Updated by: felipe@php.net
Reported by: rsmaia at gmail dot com
Summary: Type Check / Hint
-Status: Open
+Status: Bogus
Type: Bug
Package: Variables related
Operating System: GNU/Linux 2.6.32-5-686
PHP Version: 5.4.0beta1
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
The patch has been reverted. The change isn't in the SVN.
Previous Comments:
------------------------------------------------------------------------
[2011-09-30 19:44:22] rsmaia at gmail dot com
Description:
------------
Refs:
https://wiki.php.net/rfc/typechecking
https://wiki.php.net/rfc/typecheckingparseronly
Test script:
---------------
--TEST--
--FILE--
<?php
function test( string $str ) {
echo gettype( $str );
}
test('text');
?>
--EXPECT--
string
Expected result:
----------------
string
Actual result:
--------------
Catchable fatal error: Argument 1 passed to test() must be an instance of string,
string given, called in /root/php-5.4.0beta1/test01.php on line 6 and defined in
/root/php-5.4.0beta1/test01.php on line 2
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55824&edit=1