ID:          36953
 Updated by:  [EMAIL PROTECTED]
 Reported By: quake5 at gmx dot de
-Status:      Open
+Status:      Bogus
 Bug Type:    Class/Object related
 PHP Version: 5.1.2
 New Comment:

Endless recursion and segfault caused bu followed stack overflow is not
a bug, it's expected.


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

[2006-04-03 03:55:45] quake5 at gmx dot de

Description:
------------
Redeclare makes my apache2 hang with php 5.1.2

I heard of others that their 5.1.2 CLI bailed out with a SIGSEGV.

Reproduce code:
---------------
<?php

class foobar extends ArrayObject
{
    public function count()
    {
        return count($this);
    }
}

$foobar = new foobar();
$foobar[] = 1;
$foobar[] = 2;
$foobar[] = 3;

echo $foobar->count();

?>

Expected result:
----------------
3



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


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

Reply via email to