Re: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-21 Thread Jochem Maas
chetan rane wrote: > Sorry Buddie But Session dose not serialize the Object Please Have a look at > the Code Again I have tried it with PHP 5.2 > IT dose not call __sleep function. only when you have serialize it calls it. this is completely untrue. during the shutdown phase objects in the $_SESSI

Re: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-21 Thread Zoltán Németh
2007. 11. 21, szerda keltezéssel 14.12-kor chetan rane ezt írta: > Sorry Buddie But Session dose not serialize the Object Please Have a look at > the Code Again I have tried it with PHP 5.2 > IT dose not call __sleep function. only when you have serialize it calls it. AFAIK session does serialize

Re: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-21 Thread chetan rane
Sorry Buddie But Session dose not serialize the Object Please Have a look at the Code Again I have tried it with PHP 5.2 IT dose not call __sleep function. only when you have serialize it calls it. On Nov 21, 2007 3:23 AM, Julien Pauli <[EMAIL PROTECTED]> wrote: > Sorry but it goes throught __sl

Re: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-21 Thread Julien Pauli
Okay, I understand that, thanks all for your help. I'am used to always using an absolute path, I don't know why this time I didn't use one. By the way, that was interesting to understand the "underground" php behavior. 2007/11/21, Jochem Maas <[EMAIL PROTECTED]>: > > Andrés Robinet wrote: > >> -

Re: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-20 Thread Jochem Maas
Andrés Robinet wrote: >> -Original Message- ... >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php > > Just wanted to add, I found a log.txt at "D:\xampp\apache" which happens to > be the root of the apache installation on my

RE: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-20 Thread Andrés Robinet
> -Original Message- > From: Andrés Robinet [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 20, 2007 7:41 PM > To: php-general@lists.php.net > Subject: RE: [PHP] __sleep() strange behavior with file writting and > SESSION using > > > -Original Message-

RE: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-20 Thread Andrés Robinet
> -Original Message- > From: Julien Pauli [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 20, 2007 3:51 PM > To: php-general@lists.php.net > Subject: [PHP] __sleep() strange behavior with file writting and > SESSION using > > Consider that very simple code, tha

Re: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-20 Thread chetan rane
This aint a bug because __sleep is called only when you serialize an object and not when you assign it to a session Variable; On Nov 21, 2007 12:21 AM, Julien Pauli <[EMAIL PROTECTED]> wrote: > Consider that very simple code, that runs on PHP 5.2.5 onto a Windows > machine : > class a > { >

Re: [PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-20 Thread Julien Pauli
Sorry but it goes throught __sleep() as session serializes objects before storing them Proof is that "done!" is echoed. Step by step debugging also prove that , the only thing is that file_put_contents, doesn't execute, but returns a value... 2007/11/20, chetan rane <[EMAIL PROTECTED]>: > > This

[PHP] __sleep() strange behavior with file writting and SESSION using

2007-11-20 Thread Julien Pauli
Consider that very simple code, that runs on PHP 5.2.5 onto a Windows machine : No problem here, log.txt is writtable, when it passes on the serialize() instruction, it goes to __sleep and works well. "OK\r\n" is appended to the log file , and "done!" is displayed. Now consider this : In th