note 9057 added to Variable scope
| From: | plusplus7 at hotmail dot com | Date: | Fri, 13 Oct 2000 11:15:59 +0000 |
| Subject: | note 9057 added to Variable scope | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6445@lists.php.net to get a copy of this message | ||
static vars seem to be implemented differently between 3.0.12 and 4.0.2 (*unless this is a phplib
weirdness*). I have some code in a database (not within a function) that includes a static var. This
code gets eval'ed within a function that gets called repeatedly within a page. In php3 the
static var incremented but in 4 gets reset.
http://www.php.net/manual/language.variables.scope.php