From: [EMAIL PROTECTED]
Operating system: Windows 2000 and Windows XP
PHP version: 4.2.2
PHP Bug Type: Class/Object related
Bug description: Two classes error
class test
{
var $_value;
function test_static ($to)
{
$this->_value = $to;
}
}
class test2
{
var $_value;
function use_test ()
{
$this->_value = 7;
$y = new test();
$y->test_static(5);
echo "<p>value: ".$this->_value."</p>";
test::test_static (5);
echo "<p>value: ".$this->_value."</p>";
}
}
$x=new test2();
$x->use_test();
First echo returns value 7
Second echo returns value 5
is this correct?
--
Edit bug report at http://bugs.php.net/?id=19478&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19478&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19478&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19478&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19478&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19478&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19478&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19478&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19478&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19478&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19478&r=globals