php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27230 print_r or evaluation script code error !
Submitted: 2004-02-12 12:22 UTC Modified: 2004-02-12 12:32 UTC
From: ntunali at isbank dot net dot tr Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.4 OS: win98
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: ntunali at isbank dot net dot tr
New email:
PHP Version: OS:

 

 [2004-02-12 12:22 UTC] ntunali at isbank dot net dot tr
Description:
------------
in line echo ....... 


Reproduce code:
---------------
function split_post()
{
	$fields=array_keys($_POST);
	foreach($fields as $key => $field)
		echo $key.'-'.print_r(split("_",$field)).'<br>';

	return $fields;
}

Expected result:
----------------
I think, result must be
0-Array ( [0] => usergroup )
1-Array ( [0] => position )
2-Array ( [0] => menukeyw [1] => 34 )
:
:
:

Actual result:
--------------
Array ( [0] => usergroup ) 0-1
Array ( [0] => position ) 1-1
Array ( [0] => menukeyw [1] => 34 ) 2-1
Array ( [0] => task [1] => 34 ) 3-1
Array ( [0] => visible [1] => 34 ) 4-1
Array ( [0] => menukeyw [1] => 35 ) 5-1
Array ( [0] => task [1] => 35 ) 6-1
Array ( [0] => visible [1] => 35 ) 7-1
Array ( [0] => menukeyw [1] => 36 ) 8-1
Array ( [0] => task [1] => 36 ) 9-1
Array ( [0] => visible [1] => 36 ) 10-1
Array ( [0] => menukeyw [1] => 37 ) 11-1
Array ( [0] => task [1] => 37 ) 12-1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-12 12:32 UTC] abies@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

You\'re echoing the return value of print_r() which prints to stdout itself.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 14:01:37 2025 UTC