note 9057 deleted from Variable scope by jmcastagnetto

From: Date: Fri, 13 Oct 2000 22:15:48 +0000
Subject: note 9057 deleted from Variable scope by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-6478@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.

« previous php.notes (#6478) next »