#24345 [Asn->WFx]: php get Seg. fault when use out of range array element.

From: Date: Thu, 26 Jun 2003 17:04:51 +0000
Subject: #24345 [Asn->WFx]: php get Seg. fault when use out of range array element.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-42561@lists.php.net to get a copy of this message
ID: 24345 Updated by: iliaa@php.net Reported By: legion at altlinux dot ru -Status: Assigned +Status: Wont fix Bug Type: Scripting Engine problem Operating System: ALTLinux (2.4.21rc1) PHP Version: 4.3.3RC1 Assigned To: iliaa Previous Comments: ------------------------------------------------------------------------ [2003-06-26 10:50:22] iliaa@php.net There maybe a solution for this bug for 4.X, however it needs testing. Once it has been validated or rejected final decision about the status of this bug will be made. ------------------------------------------------------------------------ [2003-06-26 09:02:26] derick@php.net This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. This is fixed in PHP-5.0.0-dev and can not be backported to PHP 4.3.3-dev due to limitations in the engine. ------------------------------------------------------------------------ [2003-06-26 08:48:58] legion at altlinux dot ru Description: ------------ php get seg. fault if i try to use none exists array element. Php version: PHP 4.3.3RC2-dev (cvs snapshot 20030624) Reproduce code: --------------- <? $s = "a|b|c|d"; for ($i = 0; $i < 1000; $i++) { for ($j = 0; $j < 1000; $j++) { $a = split("\|", $s); $h[$i]['date'][$j]['count'] = $a[4]; } } ?> Expected result: ---------------- Successfully finished. Actual result: -------------- Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24345&edit=1

« previous php.bugs (#42561) next »