php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18806 foreach (process exited with...)
Submitted: 2002-08-08 11:17 UTC Modified: 2002-09-11 11:53 UTC
From: andre dot steffens at postadress dot de Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.2.2 OS: Win2k
Private report: No CVE-ID: None
 [2002-08-08 11:17 UTC] andre dot steffens at postadress dot de
when using foreach() with an empty variable the process break without any warning or error message.

foreach ($tmp as $wert) => abort

$tmp = array("test","test2");
foreach ($tmp as $wert) => OK

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-08 11:52 UTC] hholzgra@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
 [2002-09-11 11:53 UTC] sniper@php.net
error_reporting=E_ALL in php.ini and you'll see the errors..

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 18:00:01 2026 UTC