|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36953 Redeclare ArrayObject:count makes my apache hang with php 5.1.2
Submitted: 2006-04-03 03:55 UTC Modified: 2006-04-03 08:26 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: quake5 at gmx dot de Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.1.2 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: quake5 at gmx dot de
New email:
PHP Version: OS:


 [2006-04-03 03:55 UTC] quake5 at gmx dot de
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:

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

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

echo $foobar->count();


Expected result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-03 08:26 UTC]
Endless recursion and segfault caused bu followed stack overflow is not a bug, it's expected.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 15:01:29 2024 UTC