Re: [PHP-DEV] Is this a bug?

2003-03-25 Thread Chris Shiflett
--- Tony Bibbs <[EMAIL PROTECTED]> wrote:
> Are there instances you all can think of where doing a header('location: 
> $url'); causes a loss of all session data?

This is most likely not a bug. You can (hopefully) find more people to help
with this type of question on [EMAIL PROTECTED]

Good luck.

Chris

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



[PHP-DEV] Is this a bug?

2003-03-25 Thread Tony Bibbs
Are there instances you all can think of where doing a header('location: 
$url'); causes a loss of all session data?  I have a case I can reproduce 
consistently where doing a header() refresh or echoing out an HTML page 
with a meta refresh both cause resulting page to lose session.  My hunch 
is that I may not be accounting for some ingrained PHP handling and that 
this isn't a bug but I can't be sure.  

If required, I can submit the offending code but I'll hold off in case 
there is an obvious answer.

-- 
Tony Bibbs  "I guess you have to remember that those who don't
[EMAIL PROTECTED]  hunt or fish often see those of us who do as  
harmlessly strange and sort of amusing. When you  
think about it, that might be a fair assessment." 
--Unknown



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



Re: [PHP-DEV] Is this a bug?

2001-07-20 Thread Andi Gutmans

At 02:31 PM 7/20/2001 +0200, Sebastian Bergmann wrote:
>Andi Gutmans wrote:
> > > $foo->$method;   // does not work
> > > $bar->$method;   // does not work
> >
> > This should be $foo->$method() and $bar->$method()
>
>   Gotcha. This works fine.
>   How could I forget the braces?

I don't quite understand. Why not write them? :)

Andi


-- 
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]




Re: [PHP-DEV] Is this a bug?

2001-07-20 Thread Sebastian Bergmann

Andi Gutmans wrote:
> > $foo->$method;   // does not work
> > $bar->$method;   // does not work
> 
> This should be $foo->$method() and $bar->$method()

  Gotcha. This works fine.
  How could I forget the braces?

-- 
  Sebastian Bergmann Measure Traffic & Usability
  http://sebastian-bergmann.de/http://phpOpenTracker.de/

-- 
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]




Re: [PHP-DEV] Is this a bug?

2001-07-20 Thread Andi Gutmans

At 11:47 AM 7/20/2001 +0200, Sebastian Bergmann wrote:
>  class foo {
> function bar() {
> print 'bar() called';
> }
> }
>
> $foo = new foo();
> $bar =& $foo;
> $method = 'bar';
>
> $foo->$method;   // does not work
> $bar->$method;   // does not work

This should be $foo->$method() and $bar->$method()

> call_user_method($method, $foo); // works
> call_user_method($method, $bar); // works
> ?>
>
>   I think this is a bug, and all four ways to invoke the method must
>have worked at some time in the past (I tested with latest 4.0.7-dev
>CVS on Win32), since PEAR uses the first/second method to invoke its
>'emulated destructors'.
>
>--
>   Sebastian Bergmann Measure Traffic & Usability
>   http://sebastian-bergmann.de/http://phpOpenTracker.de/
>
>--
>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]


-- 
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]




[PHP-DEV] Is this a bug?

2001-07-20 Thread Sebastian Bergmann

';
}
}

$foo = new foo();
$bar =& $foo;
$method = 'bar';

$foo->$method;   // does not work
$bar->$method;   // does not work
call_user_method($method, $foo); // works
call_user_method($method, $bar); // works
?>

  I think this is a bug, and all four ways to invoke the method must
have worked at some time in the past (I tested with latest 4.0.7-dev
CVS on Win32), since PEAR uses the first/second method to invoke its
'emulated destructors'.

-- 
  Sebastian Bergmann Measure Traffic & Usability
  http://sebastian-bergmann.de/http://phpOpenTracker.de/

-- 
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]