Re: [PHP-DEV] PHP 4.0 Bug #9005: Static classes sometimes have a $this pointer

2001-01-30 Thread Chuck Hagenbuch
Quoting "Arno A. Karner" <[EMAIL PROTECTED]>: > i dissagree $this in a static object should point to the default > declared object, > and if that is unacceptable because u want the the default data to be > read only, > then it should be allowed for methods at least. It is unacceptable because it

Re: [PHP-DEV] PHP 4.0 Bug #9005: Static classes sometimes have a $this pointer

2001-01-30 Thread Arno A. Karner
[EMAIL PROTECTED] wrote: i dissagree $this in a static object should point to the default declared object, and if that is unacceptable because u want the the default data to be read only, then it should be allowed for methods at least. example class lubas class { var $tbl = ""; var $fmt

[PHP-DEV] PHP 4.0 Bug #9005: Static classes sometimes have a $this pointer

2001-01-30 Thread chuck
From: [EMAIL PROTECTED] Operating system: Linux 2.2 PHP version: 4.0.4pl1 PHP Bug Type: Scripting Engine problem Bug description: Static classes sometimes have a $this pointer If you call a static method from within an object, the static method will inherit the $this pointe