From: alex at netflex dot nl
Operating system: all
PHP version: 5.0.0b3 (beta3)
PHP Bug Type: Feature/Change Request
Bug description: unnamed static class not callable
Description:
------------
It isn't posible to make a call to a static function in a class if you
dont no the name of the class while you making the script:
class gfx_tagHandler_img {
public static function isSupported() { return true;}
}
$test = "gfx_tagHandler_img";
echo {$test}::isSupported();
I was expecting that:
echo {$test}::isSupported();
was translated to:
echo gfx_tagHandler_img::isSupported();
but is wasn't
can this be an feature for PHP?
tnx.
--
Edit bug report at http://bugs.php.net/?id=26953&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26953&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26953&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26953&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26953&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26953&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26953&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26953&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26953&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26953&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26953&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26953&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26953&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26953&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26953&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26953&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26953&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26953&r=float