Re: PHP 4.0 Bug #5275 Updated: behaviour inconsistency of the `&' operator
| From: | Teodor Cimpoesu | Date: | Thu, 29 Jun 2000 01:50:29 +0000 |
| Subject: | Re: PHP 4.0 Bug #5275 Updated: behaviour inconsistency of the `&' operator | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-22705@lists.php.net to get a copy of this message | ||
Hi Bug!
On Fri, 30 Jun 2000, Bug Database wrote:
> ID: 5275
> Updated by: joey
> Reported By: teo@digiro.net
> Status: Feedback
> Bug Type: Scripting Engine problem
> Assigned To:
> Comments:
>
> Are you sure that $HTTP_SESSION_VARS is != null?
> I tried your example on my machine, and HTTP_SESSION_VARS
> was a null array.
probably because you don't have track_vars?
ensure yourself you have least, say, HTTP_GET_VARS and try the same
code on HTTP_GET_VARS instead of HTTP_SESSION_VARS.
>
> I'm not sure what happens if you try to pass a reference to
> a NULL variable...
:) yeah, that's why I had that test, and that's how I reached to
this bug, cause the reference was not the same anymore just because
of an ($<*> != null) && ($this->v = &$<*>) ?
So, I also reproduced it least w/ GET like
s/session_start();//
s/SESSION/GET/g
but you must have track_vars I think.
-- teodor