From:             [EMAIL PROTECTED]
Operating system: Win2000 SP2
PHP version:      4.0.6
PHP Bug Type:     Session related
Bug description:  session_unregister() array_walk() immune? :)

Check this out!
I thought array_walk would be a good workaround for the session_unregister
limitation of 'one variable unregistering at a time'.

<?      session_start();
        $one = 1;
        $two = 2;
        $foo = array('one','two');
        if(session_is_registered('one') || session_is_registered('two')){
                echo 'why?';

Well.. there is even a workaround for this workaround, but when you look at
it, it makes you smile ironically :)

<?      function damn_unregister($what){
        if(!session_is_registered('one') && !session_is_registered('two')){
                echo 'now ok';

What am I missing here ?

Edit bug report at:

PHP Development Mailing List <>
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