#33301 [Opn->Fbk]: PHP crashes in interactive mode
| From: | derick@php.net | Date: | Fri, 10 Jun 2005 14:26:47 +0000 |
| Subject: | #33301 [Opn->Fbk]: PHP crashes in interactive mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80129@lists.php.net to get a copy of this message | ||
ID: 33301
Updated by: derick@php.net
Reported By: peter dot buki at vodafone dot hu
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Redhat linux
PHP Version: 5.0.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-06-10 16:19:24] peter dot buki at vodafone dot hu
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33301&edit=1