#36953 [Opn->Bgs]: Redeclare ArrayObject:count makes my apache hang with php 5.1.2

From: Date: Mon, 03 Apr 2006 06:26:17 +0000
Subject: #36953 [Opn->Bgs]: Redeclare ArrayObject:count makes my apache hang with php 5.1.2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95227@lists.php.net to get a copy of this message
ID: 36953 Updated by: tony2001@php.net 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

« previous php.bugs (#95227) next »