php.net |  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
Votes:1
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: quake5 at gmx dot de
New email:
PHP Version: OS:

 

 [2006-04-03 03:55 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-03 08:26 UTC] tony2001@php.net
Endless recursion and segfault caused bu followed stack overflow is not a bug, it's expected.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Aug 09 10:01:24 2020 UTC