aggregation stability
| From: | Greg Beaver | Date: | Sun, 12 Jan 2003 08:05:06 +0000 |
| Subject: | aggregation stability | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-93362@lists.php.net to get a copy of this message | ||
Hi,
How stable is aggregation considered to be for PHP 4.3.0 release? I've been
getting crashes with apache 1.3.27/php 4.3.0/Win98SE in certain cases when
calling a overriding method of an aggregated class.
class A
{
function display()
{
}
}
class B extends A
{
function display()
{
}
}
class D
{
function test()
{
$this->display();
}
}
class C
{
function aggtest()
{
aggregate($this,'B');
aggregate($this,'D');
$this->test();
}
}
The code above works on my system, and demonstrates the general principle
that I'm using. In some cases, just adding a flush();exit; causes an apache
crash. In others, adding a call to a function crashes things. There is
absolutely nothing consistent. I would like to attach a sample script that
causes a crash, but I can't find anything smaller than the 25 files I have
which will cause one.
Has anyone else experienced this bizarre behavior? What can I do to find
the bug or help others find it? I don't even know if it has anything to do
with aggregation. The only consistency is that when I call an aggregated
function from another class's aggregated function after deaggregating and
then re-aggregating, it seems to get unstable. I can't find anything else
that when I add it in causes a crash, and stops when I take it out.
Thanks,
Greg