[PHP-DEV] Bug #1229: Bug 1109 revisited WRT class and more than one var From: btribit <email protected>
Date: 03/11/99

From: btribit <email protected>
Operating system: Linux 2.2.2
PHP version: 3.0.7
PHP Bug Type: Other
Bug description: Bug 1109 revisited WRT class and more than one var

<HTML>
<PRE>
<?php
class test {
        var $va;
        var $vb;
                
        function init() {
                $this->$va = 0;
                $this->$vb = 0;
                echo $this->$va;
                echo $this->$vb;
        }
        function test1() {
                $this->$va = 10;
                $this->$vb = 15;
                print $this->$va;
                print $this->$vb;
        }
        function test2() {
                $this->$va = 15;
                $this->$vb = 10;
                print $this->$va;
                print $this->$vb;
        }
}
        $testing = new test;
        $testing->init();
        $testing->test1();
        $testing->test2();
?>
</PRE>
</HTML>

I compilied this as an apache 1.3.4 module with oracle support. php3.ini not relevant, not using it. The only thing I can offer is that php appears that it is having a problem keeping track of more than one variable. This should provide a clue as to what is going on.

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>