|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-10 16:26 UTC] derick@php.net
[2005-06-18 01:00 UTC] php-bugs at lists dot php dot net
[2005-08-05 11:54 UTC] dr dot paul dot thomas at gmail dot com
[2005-08-05 11:56 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 11:00:02 2025 UTC |
Description: ------------ If I run php in interactive mode (-a option), and use the code I supplied below, php crashes with segmentation fault. It works well without interactive mode. Reproduce code: --------------- <?PHP $vars['one'] = '1' ; $vars['two'] = '2' ; foreach ($vars as $key => $value) { print "$key => $value\n" ; } ?> Expected result: ---------------- The following output: one => 1 two => 2 Actual result: -------------- [user@host ~]$ php -a Interactive mode enabled <?PHP $vars['one'] = '1' ; $vars['two'] = '2' ; foreach ($vars as $key => $value) { print "$key => $value\n" ; } one => 1 Segmentation fault