#28796 [Com]: Apache eat all Memory (parent::$this->__construct())
| From: | alex dot pagnoni at solarix dot it | Date: | Thu, 17 Jun 2004 11:38:36 +0000 |
| Subject: | #28796 [Com]: Apache eat all Memory (parent::$this->__construct()) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-61028@lists.php.net to get a copy of this message | ||
ID: 28796
Comment by: alex dot pagnoni at solarix dot it
Reported By: felix at trilithium dot de
Status: Open
Bug Type: Apache related
Operating System: Linux version 2.4.21-199-default
PHP Version: 5.0.0RC3
New Comment:
is parent::$this->__construct() the correct syntax? Wasn't
it supposed to be parent::__construct()?
Previous Comments:
------------------------------------------------------------------------
[2004-06-15 17:03:13] felix at trilithium dot de
Description:
------------
Apache eat all memory when your try the example code
Reproduce code:
---------------
class firstClass{
function __construct(){
echo __CLASS__."::".__FUNCTION__."<br>";
}
function test(){
echo __CLASS__."::".__FUNCTION__."<br>";
return $this;
}
}
class secondClass extends firstClass{
function __construct(){
echo __CLASS__."::".__FUNCTION__."<br>";
parent::$this->__construct(); //<-here Apache eat all memory
//parent::$this->test(); // this works
}
}
$e= new secondClass;
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28796&edit=1