|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-03-13 09:28 UTC] sas
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 23:00:01 2025 UTC |
<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.