#36295 [Bgs->Csd]: Reflection returns broken parameter name for SplFileObject::flock()

From: Date: Sun, 05 Feb 2006 19:24:04 +0000
Subject: #36295 [Bgs->Csd]: Reflection returns broken parameter name for SplFileObject::flock()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92950@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: Bogus +Status: Closed Bug Type: SPL related Operating System: Windows PHP Version: 5.1.2 Previous Comments: ------------------------------------------------------------------------ [2006-02-05 20:23:55] 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#92950) next »