ID:               41434
 Updated by:       [EMAIL PROTECTED]
 Reported By:      leadaxe at yandex dot ru
-Status:           Open
+Status:           Bogus
 Bug Type:         *General Issues
 Operating System: win
 PHP Version:      5.2.2
 New Comment:

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.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:
------------------------------------------------------------------------

[2007-05-18 14:46:51] leadaxe at yandex dot ru

Description:
------------
I think your mast look code/ Sorry but my english is not good



Reproduce code:
---------------
<?
        $users=explode('.',".1.2.3.4.");
        foreach ($users as $key=>&$user){
                if (empty($user))
                        unset($users[$key]); //it bag?
                $user=1; //not work
        }
        var_dump($users); //see result

?>

Expected result:
----------------
array(6) {
  [1]=>
  &int(1)
  [2]=>
  &int(1)
  [3]=>
  &int(1)
  [4]=>
  &int(1)
}

Actual result:
--------------
array(4) {
  [1]=>
  string(1) "1"
  [2]=>
  string(1) "2"
  [3]=>
  string(1) "3"
  [4]=>
  string(1) "4"
}


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41434&edit=1

Reply via email to