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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to