ID: 14364
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Session related
Operating System: FreeBSD 4.2
PHP Version: 4.1.0
New Comment:

Those lines are not in my /ext/session/php_session.h

I installed the CVS version this afternoon.  I followed the instruction on php.net's 
site:

http://www.php.net/anoncvs.php

I did it from a new dir, so the tree is fresh.  I was also running php4.1 rc5 prior to 
the upgrade and now after the upgrade I am running php4.2 which is the cvs version I 
got today.  Where should I get the CVS version that has the fix?  Or can I just add 
the lines in that you posted to the source to get it to work correctly?  What do you 
recommend?

Previous Comments:
------------------------------------------------------------------------

[2001-12-07 01:28:45] [EMAIL PROTECTED]

Are you sure you did that after the fix?

file /ext/session/php_session.h should include this (around line 168):

#define PS_DEL_VARL(name,namelen)                                          \
   zend_hash_del(&PS(vars), name, namelen+1);                   \
   if (PS(http_session_vars)) {                                            \
       zend_hash_del(Z_ARRVAL_P(PS(http_session_vars)), name, namelen+1);  \
   }


Does it do that, and did you rebuild from a fresh tree?

Derick

------------------------------------------------------------------------

[2001-12-06 22:08:10] [EMAIL PROTECTED]

We downloaded and installed the CVS version today (version 4.2) and we are still 
having the same issue.

------------------------------------------------------------------------

[2001-12-06 17:12:14] [EMAIL PROTECTED]

No worries! It's already fixed in CVS.

------------------------------------------------------------------------

[2001-12-06 17:05:13] [EMAIL PROTECTED]

Sample script:

// script to create session variable
session_start();
session_register("objectA");
$objectA = new classA();

// script to unset session variable
session_start();
session_unregister("objectA");
unset($objectA);

// script to test for session variable
session_start();
if(isset($objectA))
{
  echo "TEST PASSED";
}


Doing a session_destroy() then unset() of all the session variables seems to work, but 
in the above code I wish to just unset() a single variable in the session but keep the 
session and the remaining variables alive.

------------------------------------------------------------------------

[2001-12-06 14:45:25] [EMAIL PROTECTED]

Fixed in CVS. BTW, 4.1.0 does not exist yet, so how can you report a bug for it?
This fix will be in the 4.1.0 release.

Derick

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/?id=14364


Edit this bug report at http://bugs.php.net/?id=14364&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to