[PHP-DEV] Bug or undocumented feature: static?

2001-05-22 Thread Ulf Wendel
Hi, I stepped into something yesterday I would call an undocumented feature or a bug, don't know if I should make a bug report. Here's the snippet: function bar() { static $j = 0; print ++$j; } class foo { function foo() { static $i = 0; print ++$i; } function bar() {

Re: [PHP-DEV] Bug or undocumented feature: static?

2001-05-22 Thread Andi Gutmans
It is supposed to behave like this. We took the C++ model. Andi At 12:13 PM 5/22/2001 +0200, Ulf Wendel wrote: Hi, I stepped into something yesterday I would call an undocumented feature or a bug, don't know if I should make a bug report. Here's the snippet: function bar() { static $j = 0;