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 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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 18:01:31 2024 UTC