[PHP-DEV] Bug #389: Static variable into Class recursiv function From: andri <email protected>
Date: 05/20/98

From: andri <email protected>
Operating system: Linux 2.0.33
PHP version: 3.0 Release Candidate 4
PHP Bug Type: Misbehaving function
Bug description:
Static variable into Class Recursiv function do not work property
Script exsample:

<?
class clss {
var $t;

        function recursiv() {
        static $r = 0;
        $r++;
        echo "$r<BR>\n";
                if ($r < $this->t) {
                $this->recursiv();
                }
        }
}

$n = new clss;
$n->t = 10;
$n->recursiv();
?>