Doc #65241 [NEW]: ReflectionProperty::getValue(void) is not a valid documentation

From: Date: Thu, 11 Jul 2013 09:01:50 +0000
Subject: Doc #65241 [NEW]: ReflectionProperty::getValue(void) is not a valid documentation
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10064@lists.php.net to get a copy of this message
From:             toycat at toycat dot eu
Operating system: MacOS X 10.8.4
PHP version:      5.4.17
Package:          Documentation problem
Bug Type:         Documentation Problem
Bug description:ReflectionProperty::getValue(void) is not a valid documentation

Description:
------------
The following is not a valid documentation (or there is a PHP bug):

public mixed ReflectionProperty::getValue ( void )

---
From manual page: http://www.php.net/reflectionproperty.getvalue#refsect1-
reflectionproperty.getvalue-description
---


Test script:
---------------
<?php
class MyClass {

    public $property = 'test';

}

$object = new MyClass();
$reflector = new \ReflectionObject($object);
var_dump($reflector->getProperty('property')->getValue());


Expected result:
----------------
Outputs:

string(4) "test"

Actual result:
--------------
Outputs:

<br />
<b>Warning</b>:  ReflectionProperty::getValue() expects exactly 1
parameter, 0 
given in <b>__FILE__</b> on line <b>10</b><br />
NULL


-- 
Edit bug report at https://bugs.php.net/bug.php?id=65241&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=65241&r=trysnapshot54
Try a snapshot (PHP 5.3):   https://bugs.php.net/fix.php?id=65241&r=trysnapshot53
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=65241&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65241&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65241&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65241&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65241&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65241&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65241&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65241&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=65241&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=65241&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65241&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65241&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65241&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65241&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65241&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65241&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65241&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65241&r=mysqlcfg



Thread (3 messages)

« previous php.doc.bugs (#10064) next »