php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33301 PHP crashes in interactive mode
Submitted: 2005-06-10 16:19 UTC Modified: 2005-08-05 11:56 UTC
From: peter dot buki at vodafone dot hu Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5.0.4 OS: Redhat linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: peter dot buki at vodafone dot hu
New email:
PHP Version: OS:

 

 [2005-06-10 16:19 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-10 16:26 UTC] derick@php.net
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
 [2005-06-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2005-08-05 11:54 UTC] dr dot paul dot thomas at gmail dot com
I've just tried this with php5-STABLE-200508050836 and the bug appears to have been fixed.
 [2005-08-05 11:56 UTC] tony2001@php.net
Marking as closed then.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 16:01:33 2025 UTC