: Bug #36295 :: Reflection returns broken parameter name for SplFileObject::flock()

 [2006-02-05 18:35 UTC] 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]
        )

)