ID:               26953
 User updated by:  alex at netflex dot nl
-Summary:          unnamed static class not callable
 Reported By:      alex at netflex dot nl
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: all
 PHP Version:      5.0.0b3 (beta3)
 New Comment:

changed the summary


Previous Comments:
------------------------------------------------------------------------

[2004-01-18 08:18:40] alex at netflex dot nl

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 this bug report at http://bugs.php.net/?id=26953&edit=1

Reply via email to