Re: [PHP] Passing object reference to session

2008-02-08 Thread Richard Lynch
On Thu, February 7, 2008 1:15 am, Michael Moyle wrote: I am new to the list and have a question that inspired me to join the list as I can not find any answer online. When a object reference is passed to the $_SESSION array what happens to the object? Is the object serialized and saved in

Re: [PHP] Passing object reference to session

2008-02-07 Thread Jochem Maas
Michael Moyle schreef: Hi, I am new to the list and have a question that inspired me to join the list as I can not find any answer online. When a object reference is passed to the $_SESSION array what happens to let's assume php5. all objects are reference like, they behave from a user POV

Re: [PHP] Passing object reference to session

2008-02-07 Thread Michael Moyle
Jochem, On Thu, 2008-02-07 at 09:11 +0100, Jochem Maas wrote: Michael Moyle schreef: Hi, I am new to the list and have a question that inspired me to join the list as I can not find any answer online. When a object reference is passed to the $_SESSION array what happens to let's

Re: [PHP] Passing object reference to session

2008-02-07 Thread Jochem Maas
Michael Moyle schreef: Jochem, On Thu, 2008-02-07 at 09:11 +0100, Jochem Maas wrote: Michael Moyle schreef: Hi, I am new to the list and have a question that inspired me to join the list as I can not find any answer online. When a object reference is passed to the $_SESSION array what

[PHP] Passing object reference to session

2008-02-06 Thread Michael Moyle
Hi, I am new to the list and have a question that inspired me to join the list as I can not find any answer online. When a object reference is passed to the $_SESSION array what happens to the object? Is the object serialized and saved in session (in this case file)? Or just the reference with

[PHP] Passing by reference, assigning by reference?

2005-09-05 Thread Alex Gemmell
Hi sports fans! I have a quick references related question. Ok, I'm passing a Page object by reference to another object: myClass-myFunction($objPage); What I want to do is store that Page object as part of the myClass object (see definition code below). My question is this: When assigning

Re: [PHP] passing by reference via the variable arg list

2002-09-24 Thread Marek Kilimajer
Not possible, but workaround is to pass the variable name and use it as a variable variable, but for this the variable needs to be global. Trevor Dowling wrote: Can anyone help with this? I am relativly new to PHP and am trying to use variable numbers of parameters to functions using the

Re: [PHP] passing by reference via the variable arg list

2002-09-24 Thread Trevor Dowling
Thought as much after some head scratching, Thanks Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Not possible, but workaround is to pass the variable name and use it as a variable variable, but for this the variable needs to be global.

[PHP] passing by reference via the variable arg list

2002-09-23 Thread Trevor Dowling
Can anyone help with this? I am relativly new to PHP and am trying to use variable numbers of parameters to functions using the func_get_arg(). However, I am unable to determine the correct syntax for passing by reference via the variable arg list. Trevor /* This Works Fine */ function

[PHP] passing by reference

2001-12-27 Thread Kancha .
I coulnd't figure out the difference between the two: function foo(){ $x = hello; return $x; } and function foo(){ $x = hello; return $x; } __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- PHP

Re: [PHP] passing by reference

2001-12-27 Thread Andi Gutmans
On Thu, 27 Dec 2001, Kancha . wrote: I coulnd't figure out the difference between the two: function foo(){ $x = hello; return $x; } and function foo(){ $x = hello; return $x; } return $x will give you a parser error. Andi -- PHP General Mailing List

Re: [PHP] Passing by reference deprecated?

2001-03-30 Thread Yasuo Ohgaki
- From: CC Zona [mailto:[EMAIL PROTECTED]] Sent: 30 March 2001 04:40 To: [EMAIL PROTECTED] Subject: [PHP] Passing by reference deprecated? set_value($variable,$value) { $variable=value; } "Warning: Call-time pass-by-reference has been deprecated - argument passed by

RE: [PHP] Passing by reference deprecated?

2001-03-30 Thread Neil Kimber
to hear of other peoples views. -Original Message- From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] Sent: 30 March 2001 10:08 To: [EMAIL PROTECTED] Subject: Re: [PHP] Passing by reference deprecated? FYI Unless you need to modify and return modified contents of variables, pass by reference makes

Re: [PHP] Passing by reference deprecated?

2001-03-30 Thread Yasuo Ohgaki
Ohgaki" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 30, 2001 6:51 PM Subject: RE: [PHP] Passing by reference deprecated? I'm surprised. I would have thought that it would have been the other way around. Passing by reference should have similar implications to reference count

[PHP] Passing by reference deprecated?

2001-03-29 Thread CC Zona
set_value($variable,$value) { $variable=value; } "Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time

RE: [PHP] Passing by reference deprecated?

2001-03-29 Thread Neil Kimber
at this point -Original Message- From: CC Zona [mailto:[EMAIL PROTECTED]] Sent: 30 March 2001 04:40 To: [EMAIL PROTECTED] Subject: [PHP] Passing by reference deprecated? set_value($variable,$value) { $variable=value; } "Warning: Call-time pass-by-reference has been depre