Re: Re[2]: [PHP] Bug ?
| From: | David Otton | Date: | Sat, 05 Apr 2003 11:29:28 +0000 |
| Subject: | Re: Re[2]: [PHP] Bug ? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142503@lists.php.net to get a copy of this message | ||
On Sat, 5 Apr 2003 13:18:08 +0300, you wrote:
>David, thank you very much. I suspected smth. like this, but still, it is
>weird: PHP already has the "&" operator (?) for assigning by reference.
The reference operator
$b = &$a;
forces $b and $a to be references to the same variable now and forever,
but the assignment operator
$b = $a;
may make $b and $a reference the same variable, but will make deep
copies of them when their values diverge.
At least that is my understanding.
>And
>there is more: I noticed that if I use the "sort" function instead of
>"array_multisort", it works as expected.
>I still think there is a bug involved :(
Well... I hesitate to call it a bug because each function is working as
intended by its author. Idiosyncratic language design, maybe :)