|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-11-21 10:08 UTC] hegyvari at ardents dot hu
<? $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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 17:00:01 2025 UTC |
As I said, it doesn't crash but it leaks: mfischer@ficken:~/src/php/bugtest$ php -f 14161.php end. ./zend_execute.c(1962) : Freeing 0x082E0B64 (3 bytes), script=14161.php zend_variables.c(106) : Actual location (location was relayed) mfischer@ficken:~/src/php/bugtest$ cat 14161.php <? #$str='1,2,3,4,5,6,7,8,9'; $str = ''; echo $str[0][NO]; echo "end."; ?> mfischer@ficken:~/src/php/bugtest$ php -f 14161.php end. ./zend_execute.c(1962) : Freeing 0x082E0B64 (3 bytes), script=14161.php zend_variables.c(106) : Actual location (location was relayed)