References to static vars, static vars in objects & OO performance

From: Date: Tue, 23 Jan 2001 00:56:57 +0000
Subject: References to static vars, static vars in objects & OO performance
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-44760@lists.php.net to get a copy of this message
Hello. 1. I recently discovered that it´s possible to return a reference to a static variable. Is this supposed to work, will it stay that way in future versions? 2. Static variables are "shared" between multiple instances of the same object. Is this intended behaviour? 3. Could someone give a rough estimation of how big the performance loss is when using classes instead of plain functions in PHP? Regards Marten.

« previous php.dev (#44760) next »