From:             legion at altlinux dot ru
Operating system: ALTLinux (2.4.21rc1)
PHP version:      4.3.3RC1
PHP Bug Type:     Scripting Engine problem
Bug description:  php get       Seg. fault when use out of range array element.

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 bug report at http://bugs.php.net/?id=24345&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24345&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24345&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24345&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24345&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24345&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24345&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24345&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24345&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24345&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24345&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24345&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24345&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24345&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24345&r=gnused

Reply via email to