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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
17 + 16 = ?
Subscribe to this entry?

 
 [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: Fri Mar 29 11:01:29 2024 UTC