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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
48 - 10 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 16:01:28 2024 UTC