php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31364 aaaaa
Submitted: 2004-12-31 09:24 UTC Modified: 2004-12-31 12:20 UTC
From: hoffmann at btc dot com dot tw Assigned:
Status: Not a bug Package: Zlib related
PHP Version: 4.3.10 OS: redhat9
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hoffmann at btc dot com dot tw
New email:
PHP Version: OS:

 

 [2004-12-31 09:24 UTC] hoffmann at btc dot com dot tw
Description:
------------
diff php-4.3.8 php-4.3.10 by foreach function

Reproduce code:
---------------
<?
//php-4.3.8
$a="1,2,3,4,5,6";
foreach(explode(",",$a) AS $k)
{
   echo "$k\n";
}
?>
result:
1
2
3
4
5
6


Expected result:
----------------
1
2
3
4
5
6

Actual result:
--------------
<?
//php-4.3.10
$a="1,2,3,4,5,6";
foreach(explode(",",$a) AS $k)
{
   echo "$k\n";
}
?>
result:
array
array
array
array
array
array

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-31 12:20 UTC] derick@php.net
Do not file bugs when you have Zend extensions (zend_extension=)
loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache,
APC, Xdebug and ionCube loader.  These extensions often modify engine
behavior which is not related to PHP itself.

And search the bugsystem first! This is number 17 or so.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Mar 31 07:01:23 2020 UTC