php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #23962 method_exists doesn't work on classes
Submitted: 2003-06-02 14:22 UTC Modified: 2003-09-10 21:06 UTC
From: wagner at globalpark dot de Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4CVS-2003-06-02 (stable) OS: my Browser
Private report: No CVE-ID: None
 [2003-06-02 14:22 UTC] wagner at globalpark dot de
method_exists works on objects, not classes, like the 
documentation says. There's a difference. 
 
Also, I think there are ways for methods to be get into an 
object without belonging to the object's class. 
Aggregation? 
 
Seen in online documentation on 
http://www.php.net/manual/en/function.method-exists.php 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-10 21:06 UTC] hholzgra@php.net
"This function returns TRUE if the method given by method_name has been defined for the given object, FALSE otherwise."

i think this is clear enough ...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 03:01:28 2024 UTC