ID:               46156
 Updated by:       ka...@php.net
 Reported By:      ka...@php.net
 Status:           Assigned
 Bug Type:         Reproducible crash
 Operating System: *
 PHP Version:      5CVS-2008-11-11
 Assigned To:      dmitry
 New Comment:

Heres another one with __call():
<?php
        class Test
        {
                public function __call($call, Array $args)
                {
                        call_user_func_array(Array($this, $call), $args);
                }
        }

        $test = new Test;
        $test->crash();
?>


Previous Comments:
------------------------------------------------------------------------

[2008-12-05 07:28:28] ka...@php.net

I've discovered one more crash and reported here of the same type:
http://bugs.php.net/bug.php?id=46754

------------------------------------------------------------------------

[2008-09-23 10:00:25] ka...@php.net

Description:
------------
Creating a new instance of the same class in a class destructor which
causes infinite recursion will cause PHP to crash, instead of throwing a
memory_limit error.

Dmitry told me to report this so it wouldn't be forgotten.

Reproduce code:
---------------
<?php
        class Crash
        {
                public function __destruct()
                {
                        new self;
                }
        }

        new Crash;
?>

Expected result:
----------------
memory_limit error

Actual result:
--------------
Crash


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=46156&edit=1

Reply via email to