#24378 [Opn]: Calling static methods without knowing the name of the class

From: Date: Sat, 28 Jun 2003 22:37:42 +0000
Subject: #24378 [Opn]: Calling static methods without knowing the name of the class
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-42695@lists.php.net to get a copy of this message
ID: 24378 User updated by: ville dot tapio at fountainpark dot com Reported By: ville dot tapio at fountainpark dot com Status: Open -Bug Type: Feature/Change Request +Bug Type: Math related PHP Version: 4.3.1 New Comment: Ugly workaround: Class Foo { function bar() {} } $class = 'Foo'; eval ($class . '::bar();'); Previous Comments: ------------------------------------------------------------------------ [2003-06-28 17:09:32] ville dot tapio at fountainpark dot com Description: ------------ Class Foo { function bar() {} } $class = 'Foo'; $class::bar(); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24378&edit=1

« previous php.bugs (#42695) next »