Bug #53490 [NEW]: ReflectionClass::__construct() documentation incorrect
| From: | php at elyobo dot net | Date: | Mon, 06 Dec 2010 22:51:49 +0000 |
| Subject: | Bug #53490 [NEW]: ReflectionClass::__construct() documentation incorrect | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-5630@lists.php.net to get a copy of this message | ||
From:
Operating system: Irrelevant
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Bug
Bug description:ReflectionClass::__construct() documentation incorrect
Description:
------------
The documentation for the ReflectionClass construction incorrectly
indicates that
the argument should be of type string; this is incorrect, as the system
works
correct with either a string or Object.
The documentation should indicate that the type is "mixed" and should
provide an
explanation that either the name of the target class or an instance of the
target
class can be used.
The documentation in question is available at
http://www.php.net/manual/en/reflectionclass.construct.php
--
Edit bug report at http://bugs.php.net/bug.php?id=53490&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53490&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53490&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53490&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53490&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53490&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53490&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53490&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53490&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53490&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53490&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53490&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53490&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53490&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53490&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53490&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53490&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53490&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53490&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53490&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53490&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53490&r=mysqlcfg