Re: [PHP4BETA] bug:behaviour of 'static' flag
| From: | Zeev Suraski | Date: | Tue, 11 Jan 2000 21:34:18 +0000 |
| Subject: | Re: [PHP4BETA] bug:behaviour of 'static' flag | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9049@lists.php.net to get a copy of this message | ||
At 16:09 10/01/2000 , Bruno Baketaric wrote:
This message was sent from Geocrawler.com by "Bruno Baketaric" <bbaketaric@wob-interactive.de> Be sure to reply to that address. If the member function of a class makes use of a variable declared as "static" two objects created from this class share the value of this static variable in php4b3. In php3 this variable stores different values (this should be the correct behaviour).It wasn't the intended behavior, and as such it wasn't documented. Static variables belong to the containing method, which belongs to the containing class. They're not per-instance and don't belong to any particular object. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/