[PHP] Re: Returning non-references still allows access to membervariables?

2002-10-22 Thread Matthew Bogosian
the output is as expected(?): === array === hello Can anyone tell me what's going on here? I don't think this is at all the correct behavior. On Sun, 2002-10-20 at 05:02, Matthew Bogosian wrote: Howdy all, I have stumbled onto a reference behavior I cannot explain. Here's my problem: I'm

[PHP] Returning non-references still allows access to member variables?

2002-10-20 Thread Matthew Bogosian
Howdy all, I have stumbled onto a reference behavior I cannot explain. Here's my problem: I'm trying to return a copy of a member variable. The function is not declared to return a reference, but it seems as if the user can override this. Here's a non-object example: ?php // Create an