#24184 [Bgs]: PHP crashes/hangs webserver

From: Date: Mon, 16 Jun 2003 14:24:44 +0000
Subject: #24184 [Bgs]: PHP crashes/hangs webserver
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-42038@lists.php.net to get a copy of this message
ID: 24184 User updated by: blueroom at digitalmente dot net Reported By: blueroom at digitalmente dot net Status: Bogus Bug Type: Reproducible crash Operating System: Windows 2000 PHP Version: 4.3.2 New Comment: Well, I can understand that the bug is marked as bugs and won't be fixed until the release of PHP 5, but shouldn't at least an exception be added to throw a fatal error instead of crashing upon meeting the >64K references condition? Previous Comments: ------------------------------------------------------------------------ [2003-06-14 13:28:06] sniper@php.net See bug #23132. (Actually in ZE2 you can just have more entries.. :) ------------------------------------------------------------------------ [2003-06-14 13:01:03] sniper@php.net With PHP 5.0.0-dev (ZE2) it doesn't seem to leak, propably won't even crash either (on win32). ------------------------------------------------------------------------ [2003-06-14 12:38:39] blueroom at digitalmente dot net $index < ... 65534 - OK 65535 - OK 65536 - Crash/hang 66537 - Crash/hang (using the original code with the object) Integer overflow problem, it seems :) ------------------------------------------------------------------------ [2003-06-14 11:31:08] elmicha@php.net Here on Linux, it's fine with $index<65535, but with $index<65536, I get: [Sat Jun 14 18:27:36 2003] Script: '/home/elmicha/php/bug24184.php' --------------------------------------- /usr/local/src/php-4.3.2/Zend/zend_execute.h(44) : Block 0x084E4298 status: Beginning: Overrun (magic=0x084D9D88, expected=0x7312F8DC) End: Unknown --------------------------------------- No core dump, though. The same happens without a class involved: <?php $no_object = "abc"; for($index= 0; $index<65536; $index++) $array[] = $no_object; ?> No problems here with: <?php for($index= 0; $index<65536; $index++) $array[] = "abc"; ?> And no problems with: <?php for($index= 0; $index<65536; $index++) $array[] = $index; ?> ------------------------------------------------------------------------ [2003-06-14 10:42:37] helly@php.net Please try it with exactly 65534, 65535, 65536 and 65537 entries. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/24184 -- Edit this bug report at http://bugs.php.net/?id=24184&edit=1

« previous php.bugs (#42038) next »