php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36295 Reflection returns broken parameter name for SplFileObject::flock()
Submitted: 2006-02-05 18:35 UTC Modified: 2006-02-05 20:24 UTC
From: marcus at lastcraft dot com Assigned:
Status: Closed Package: SPL related
PHP Version: 5.1.2 OS: Windows
Private report: No CVE-ID: None
 [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]
        )

)



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-05 20:23 UTC] tony2001@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC