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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Sat Dec 21 18:01:29 2024 UTC