|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2005-07-21 05:12 UTC] scott at slerman dot net
 Description: ------------ The manual lists the function declaration as string get_class ( object obj ) In fact, the argument is optional. If no argument is given, get_class returns the name of the class that the current method is defined in (returning the parent class if the method is called as part of a child class). PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Thu Oct 30 22:00:01 2025 UTC | 
Seems this changed in PHP 5: sean@iconoclast:~$ php -r 'class Foo { function bar() { echo get_class(); } } Foo::bar();' Warning: Wrong parameter count for get_class() in Command line code on line 1 sean@iconoclast:~$ php5 -r 'class Foo { function bar() { echo get_class(); } } Foo::bar();' I'd guess as part of #9, here: http://cvs.php.net/co.php/php-src/README.PHP4-TO-PHP5-THIN-CHANGES S