Acceptable Seg Faults?
| From: | Ralph Schindler | Date: | Tue, 12 Sep 2006 18:42:37 +0000 |
| Subject: | Acceptable Seg Faults? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-25636@lists.php.net to get a copy of this message | ||
The following script produces a seg fault:
<?
$class = new MyClass();
class MyClass
{
public function __construct()
{
$this->_start();
}
public function _start()
{
$this->_myCall();
}
public function _myCall()
{
$this->_start();
}
}
I assume this is b/c its recursively diving into Class function/method calls and we are filling memory.. Is this detectable? Should I file a bug report or is this known? Ideally it would be nice to see a fatal error thrown, if this is indeed detectable.
PHP 5.1.6 / Linux 2.6 / Apache 2
[notice] child pid 6688 exit signal Segmentation fault (11)
-Ralph