Re: [PHP] $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

2006-01-25 Thread Jochem Maas

Daevid Vincent wrote:

No no no. I'm NOT passing data between servers. It's just two pages on the
same server. One that sets up the session/class and the other page just
re-loads the session. 


When I talk about two different servers, I copy the entire source/db schema
from one server to the other so they are clones for all intents and
purposes.

One server works the way I'd expect.
The other doesn't.
SAME code on both. Same schema. Nearly identical LAMP versions.


keyword is 'Nearly' - please take into account that the behaviour
of php can change from version to version (sometimes the change is
completely unintentional and unwanted.):


[EMAIL PROTECTED]:/lockdown# php --version
PHP 5.0.3 (cli) (built: Jan  5 2006 13:18:18)


PHP5.0.3


Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.9, Copyright (c) 2003-2005, by Zend
Technologies
with Zend Optimizer v2.6.0, Copyright (c) 1998-2005, by Zend
Technologies


the not working box doesn't run the Zend stuff - try turning it
off to see if that break your working machine (doubtful)



NOT WORKING BOX:
vmware apache2-php5 # php --version
PHP 5.0.5-pl3-gentoo (cli) (built: Dec 14 2005 15:44:04)


PHP5.0.5 (or even PHP5.0.5-pl3-gentoo what exotic flavor that might be)


given that the not working box is running php5.0.5 and the working box
a prior version gives me the sneaking suspicion (spelling!?) that
you may be looking at a reference related problem.

I assume your php CLI is from the same build as the apache module (or
whatever sapi your websaerver uses), correct? (otherwise you'll need
to look at the version info in phpinfo() as viewed via your webbrowser)


Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies
This is why I'm saying, it's not my PHP code or database or anything like
that.
It must be some kind of server configuration, but I can't figure out what it
would be. I've compared the php.ini files and don't see anything that seems
relevant. 


the session is not set to auto start on the not working server per chance?






-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 24, 2006 4:54 PM

To: php-general@lists.php.net
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] $_SESSION saves all values but Class -- 
works on one server but not another?! [second plead for help]


You say it's working on one box and not on the other?  Maybe 
I'm wrong (and sounds like I am) but I thought that you 
couldn't pass objects between scripts even with serialize()?


Certainly sounds like it was working for you...   can anyone 
clarify what objects/variables/data types can be passed from 
script to script and what can't?


tg, try the manual.



I know things like database connections can't be shared (that 
is, you can't assign a MySQL connect link to a variable then 
pass that variable/connect to the next script, it needs to 
reconnect the next time around.. or am I wrong about that too? hah)


-TG
God I'm tired

= = = Original message = = =

Thought I'd give this another shot since I still can't figure 
it out after

nearly a week...

I have a gentoo server that doesn't save/restore the CLASS 
portion of a
session, but it does retain other $_SESSION values. This code 
works fine on

a debian box.

WORKING BOX:
[snip]





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

2006-01-24 Thread tg-php
You say it's working on one box and not on the other?  Maybe I'm wrong (and 
sounds like I am) but I thought that you couldn't pass objects between scripts 
even with serialize()?

Certainly sounds like it was working for you...   can anyone clarify what 
objects/variables/data types can be passed from script to script and what can't?

I know things like database connections can't be shared (that is, you can't 
assign a MySQL connect link to a variable then pass that variable/connect to 
the next script, it needs to reconnect the next time around.. or am I wrong 
about that too? hah)

-TG
God I'm tired

= = = Original message = = =

Thought I'd give this another shot since I still can't figure it out after
nearly a week...

I have a gentoo server that doesn't save/restore the CLASS portion of a
session, but it does retain other $_SESSION values. This code works fine on
a debian box.

WORKING BOX:
[snip]

___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

2006-01-24 Thread Daevid Vincent
No no no. I'm NOT passing data between servers. It's just two pages on the
same server. One that sets up the session/class and the other page just
re-loads the session. 

When I talk about two different servers, I copy the entire source/db schema
from one server to the other so they are clones for all intents and
purposes.

One server works the way I'd expect.
The other doesn't.
SAME code on both. Same schema. Nearly identical LAMP versions.
This is why I'm saying, it's not my PHP code or database or anything like
that.
It must be some kind of server configuration, but I can't figure out what it
would be. I've compared the php.ini files and don't see anything that seems
relevant. 


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, January 24, 2006 4:54 PM
 To: php-general@lists.php.net
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] $_SESSION saves all values but Class -- 
 works on one server but not another?! [second plead for help]
 
 You say it's working on one box and not on the other?  Maybe 
 I'm wrong (and sounds like I am) but I thought that you 
 couldn't pass objects between scripts even with serialize()?
 
 Certainly sounds like it was working for you...   can anyone 
 clarify what objects/variables/data types can be passed from 
 script to script and what can't?
 
 I know things like database connections can't be shared (that 
 is, you can't assign a MySQL connect link to a variable then 
 pass that variable/connect to the next script, it needs to 
 reconnect the next time around.. or am I wrong about that too? hah)
 
 -TG
 God I'm tired
 
 = = = Original message = = =
 
 Thought I'd give this another shot since I still can't figure 
 it out after
 nearly a week...
 
 I have a gentoo server that doesn't save/restore the CLASS 
 portion of a
 session, but it does retain other $_SESSION values. This code 
 works fine on
 a debian box.
 
 WORKING BOX:
 [snip]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] $_SESSION saves all values but Class -- works on one server but not another?!

2006-01-19 Thread Daevid Vincent
Thank you for the reply. I don't think that's the issue.

I have:

; Initialize session on request startup.
session.auto_start = 0

But this is the same setting as the box that DOES work.

What's really confusing me is that part of the SESSION does work. I would
expect an all or nothing case. Everything but the class is restored.

You had me at EHLO --E.Webb (10.04.05)  

 -Original Message-
 From: Richard Lynch [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, January 19, 2006 1:54 PM
 To: Daevid Vincent
 Subject: Re: [PHP] $_SESSION saves all values but Class -- 
 works on one server but not another?!
 
 On Wed, January 18, 2006 11:27 pm, Daevid Vincent wrote:
  I have a gentoo server that doesn't save/restore the CLASS 
 portion of
  a
  session, but it does retain other $_SESSION values. This code works
 
 Sounds to me like the Gentoo box does not have 'autoload' so the
 objects coming back out of the session have no 'class' to build
 themselves from...
 
 I confess to not reading all the details you posted to see if autoload
 was on/off differently in the two...
 
 Especially since I have no idea how to turn it on/off as I 
 never used it.
 
 -- 
 Like Music?
 http://l-i-e.com/artists.htm
 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] $_SESSION saves all values but Class -- works on one server but not another?!

2006-01-19 Thread Richard Lynch


Object 'autoload' has absolutely NOTHING to do with session.auto_start.

http://www.php.net/autoload

On Thu, January 19, 2006 4:10 pm, Daevid Vincent wrote:
 Thank you for the reply. I don't think that's the issue.

 I have:

 ; Initialize session on request startup.
 session.auto_start = 0

 But this is the same setting as the box that DOES work.

 What's really confusing me is that part of the SESSION does work. I
 would
 expect an all or nothing case. Everything but the class is restored.

 You had me at EHLO --E.Webb (10.04.05)

 -Original Message-
 From: Richard Lynch [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 19, 2006 1:54 PM
 To: Daevid Vincent
 Subject: Re: [PHP] $_SESSION saves all values but Class --
 works on one server but not another?!

 On Wed, January 18, 2006 11:27 pm, Daevid Vincent wrote:
  I have a gentoo server that doesn't save/restore the CLASS
 portion of
  a
  session, but it does retain other $_SESSION values. This code
 works

 Sounds to me like the Gentoo box does not have 'autoload' so the
 objects coming back out of the session have no 'class' to build
 themselves from...

 I confess to not reading all the details you posted to see if
 autoload
 was on/off differently in the two...

 Especially since I have no idea how to turn it on/off as I
 never used it.

 --
 Like Music?
 http://l-i-e.com/artists.htm




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] $_SESSION saves all values but Class -- works on one server but not another?!

2006-01-19 Thread Daevid Vincent
You are correct, however that also seems to have to do with the actual class
or php code and not a server configuration. If I copy my PHP files to the
'other' server, everything works as expected -- no change in code required.
This is why I suspect it is a PHP/Apache/php.ini type of problem. But as I
tried to illustrate, the php.ini seems to be nearly the same on both
servers. 

 -Original Message-
 From: Richard Lynch [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, January 19, 2006 2:46 PM
 To: Daevid Vincent
 Cc: php-general@lists.php.net; [EMAIL PROTECTED]
 Subject: RE: [PHP] $_SESSION saves all values but Class -- 
 works on one server but not another?!
 
 
 
 Object 'autoload' has absolutely NOTHING to do with 
 session.auto_start.
 
 http://www.php.net/autoload
 
 On Thu, January 19, 2006 4:10 pm, Daevid Vincent wrote:
  Thank you for the reply. I don't think that's the issue.
 
  I have:
 
  ; Initialize session on request startup.
  session.auto_start = 0
 
  But this is the same setting as the box that DOES work.
 
  What's really confusing me is that part of the SESSION does work. I
  would
  expect an all or nothing case. Everything but the class is restored.
 
  You had me at EHLO --E.Webb (10.04.05)
 
  -Original Message-
  From: Richard Lynch [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 19, 2006 1:54 PM
  To: Daevid Vincent
  Subject: Re: [PHP] $_SESSION saves all values but Class --
  works on one server but not another?!
 
  On Wed, January 18, 2006 11:27 pm, Daevid Vincent wrote:
   I have a gentoo server that doesn't save/restore the CLASS
  portion of
   a
   session, but it does retain other $_SESSION values. This code
  works
 
  Sounds to me like the Gentoo box does not have 'autoload' so the
  objects coming back out of the session have no 'class' to build
  themselves from...
 
  I confess to not reading all the details you posted to see if
  autoload
  was on/off differently in the two...
 
  Especially since I have no idea how to turn it on/off as I
  never used it.
 
  --
  Like Music?
  http://l-i-e.com/artists.htm
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 
 -- 
 Like Music?
 http://l-i-e.com/artists.htm
 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php