PHP 4.0 Bug #6040 Updated: PHP Crashed if class contain reference by other class
| From: | sniper@php.net | Date: | Wed, 29 Nov 2000 12:09:27 +0000 |
| Subject: | PHP 4.0 Bug #6040 Updated: PHP Crashed if class contain reference by other class | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39546@lists.php.net to get a copy of this message | ||
ID: 6040
Updated by: sniper
Reported By: rezinkin@mail.ru
Status: Bogus
Bug Type: Reproduceable crash
Assigned To:
Comments:
Previous Comments:
---------------------------------------------------------------------------
[2000-08-09 01:38:19] rezinkin@mail.ru
+++ crashed script:
<?
class B {
var $pA;
function B()
{
}
function Show_m_A()
{
echo $this->pA->Show_m_A();
}
}
class A {
var $m_A;
var $B;
function A($a)
{
$this->m_A = $a;
$this->B = new B();
$this->B->pA = &$this;
}
function Show_m_A()
{
echo "A->m_A = ".$this->m_A.'<BR>';
}
function Show_B_m_A()
{
echo $this->B->Show_m_A();
}
}
$a = new A(1);
$a->Show_m_A();
echo "<HR>";
$a->Show_B_m_A();
echo "<HR>";
$a->m_A = 2;
$a->Show_m_A();
echo "<HR>";
$a->Show_B_m_A();
echo "<HR>";
?>
+++ php.ini - default
+++ Additionlal modules : none
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6040