#36295 [Opn->Bgs]: Reflection returns broken parameter name for SplFileObject::flock()
| From: | tony2001@php.net | Date: | Sun, 05 Feb 2006 19:23:57 +0000 |
| Subject: | #36295 [Opn->Bgs]: Reflection returns broken parameter name for SplFileObject::flock() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92949@lists.php.net to get a copy of this message | ||
ID: 36295
Updated by: tony2001@php.net
Reported By: marcus at lastcraft dot com
-Status: Open
+Status: Bogus
Bug Type: SPL related
Operating System: Windows
PHP Version: 5.1.2
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Actually there was a typo in parameter name.
Fixed in CVS.
Previous Comments:
------------------------------------------------------------------------
[2006-02-05 18:35:02] marcus at lastcraft dot com
Description:
------------
Spurious "]" character on name of "wouldblock" parameter.
Reproduce code:
---------------
$reflection = new ReflectionClass('SplFileObject');
print_r($reflection->getMethod('flock')->getParameters());
Expected result:
----------------
Array
(
[0] => ReflectionParameter Object
(
[name] => operation
)
[1] => ReflectionParameter Object
(
[name] => wouldblock
)
)
Actual result:
--------------
Array
(
[0] => ReflectionParameter Object
(
[name] => operation
)
[1] => ReflectionParameter Object
(
[name] => wouldblock]
)
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36295&edit=1