Re: PHP 4.0 Bug #6240: is_reference()
| From: | Andrei Zmievski | Date: | Fri, 18 Aug 2000 16:44:38 +0000 |
| Subject: | Re: PHP 4.0 Bug #6240: is_reference() | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-29431@lists.php.net to get a copy of this message | ||
On Fri, 18 Aug 2000, André Langhorst wrote:
> well, what was his reason? during some discussion we´ve found out that
> zend vars have a parameter is_ref and thus... no problem I`d think
> (var_dump() is capable of marking references too)
>
> we´ve also found out that it´s complicated to find out to what the
> reference belongs too (for serializing), I think stas worked on this,
> not sure
Here's what Zeev said:
Zeev Suraski wrote:
> Here you have no way of knowing, since (I assume) you're passing the
> arguments to my_func() by value. So the values $a and $b are really
> not
> related to the reference characteristics of $a and $b - they're copies
> that have the same value. There's no way to tell, unless you request
> the
> arguments to be passed by reference (in which case they would evaluate
> to
> the same zval * and be tagged as is_ref).
-Andrei
UNIX is like sex: If you don't know it, you don't miss it. But if
you know it, you'll need it. -- Anonymous.