Bug #14161: segfault after strange code

From: Date: Wed, 21 Nov 2001 15:08:28 +0000
Subject: Bug #14161: segfault after strange code
Groups: php.dev 
Request: Send a blank email to php-dev+get-71224@lists.php.net to get a copy of this message
From: hegyvari@ardents.hu Operating system: Redhat 6.2 PHP version: 4.0.6 PHP Bug Type: Reproducible crash Bug description: segfault after strange code <? $str='1,2,3,4,5,6,7,8,9'; echo $str[0][NO]; echo $str[0][NO]; echo $str[0][NO]; echo $str[0][NO]; echo $str[0][NO]; echo $str[0][NO]; echo $str[0][NO]; echo "end."; ?> check http://mail.ardents.hu:701/info.php3 for a phpinfo(); This piece of code causes Apache to segfault. It is a distilled version, the original error was a typo inside a complex function, hidden inside a loop. It took more than a day to find. PHP4.0.5 produced the same result. -- Edit bug report at: http://bugs.php.net/?id=14161&edit=1

« previous php.dev (#71224) next »