#49798 [NEW]: Doc for ReflectionClass::isInstance is wrong

From: Date: Wed, 07 Oct 2009 06:15:39 +0000
Subject: #49798 [NEW]: Doc for ReflectionClass::isInstance is wrong
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2895@lists.php.net to get a copy of this message
From: kristof dot coomans at telenet dot be Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Doc for ReflectionClass::isInstance is wrong Description: ------------ http://be2.php.net/manual/en/reflectionclass.isinstance.php "ReflectionClass::isInstance — Checks class for instance public bool ReflectionClass::isInstance ( string $object ) Checks if a class is an instance of an object." To me it looks like the documentation is wrong. How can a class be an instance of an object? I think it must be: checks if an object (argument $object) is an instance of the class represented by the ReflectionClass. -- Edit bug report at http://bugs.php.net/?id=49798&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49798&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49798&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49798&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49798&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49798&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49798&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49798&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49798&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49798&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49798&r=support Expected behavior: http://bugs.php.net/fix.php?id=49798&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49798&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49798&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49798&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49798&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49798&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49798&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49798&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49798&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49798&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49798&r=mysqlcfg

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