Req #28720 [Com]: what about a __static() method

From: Date: Mon, 17 May 2010 00:49:44 +0000
Subject: Req #28720 [Com]: what about a __static() method
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-150494@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=28720&edit=1

 ID:               28720
 Comment by:       markus at malkusch dot de
 Reported by:      dardo at gigared dot com
 Summary:          what about a __static() method
 Status:           Wont fix
 Type:             Feature/Change Request
 Package:          Feature/Change Request
 Operating System: all
 PHP Version:      5CVS-2004-06-10 (dev)

 New Comment:

This autoloader implementation supports the class constructor
__static():
http://php-autoloader.malkusch.de/en/


Previous Comments:
------------------------------------------------------------------------
[2004-06-10 09:03:59] derick@php.net

No thanks, we will not add this. PHP is not Java.

------------------------------------------------------------------------
[2004-06-10 05:33:55] dardo at gigared dot com

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


Thread (3 messages)

« previous php.bugs (#150494) next »