From:             dardo at gigared dot com
Operating system: all
PHP version:      5CVS-2004-06-10 (dev)
PHP Bug Type:     *General Issues
Bug description:  what about a __static() method

Description:
------------
i need to execute a static block of code only one time per 
class 
this is a OOP improvement to php 
 
i wish this 
 
class foo{ 
        $var=123; 
        function __static(){ 
                $this->var+=40; 
        } 
} 
 
like static { } java statement 
 
:P 
 
thanks.. 


-- 
Edit bug report at http://bugs.php.net/?id=28720&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28720&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28720&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28720&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28720&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28720&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28720&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28720&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28720&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28720&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28720&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28720&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28720&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28720&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28720&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28720&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28720&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28720&r=float

Reply via email to