php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #49798 Doc for ReflectionClass::isInstance is wrong
Submitted: 2009-10-07 06:15 UTC Modified: 2009-11-13 21:18 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: kristof dot coomans at telenet dot be Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2009-10-07 06:15 UTC] kristof dot coomans at telenet dot be
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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-13 21:18 UTC] svn@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=290701
Log: Object is instance of class (fixes #49798)
 [2009-11-13 21:18 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 15 21:00:02 2026 UTC