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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 07:01:30 2024 UTC