[PHP] Preventing static method calls in PHP4

2004-07-22 Thread Marcus Bointon
[repost, not sure if it worked last time] If I want to prevent a method from being called statically in PHP4, how can I do it? So far I've tried these techniques: Anotstatic = true; } function dynamic() { if (!isset($this) or !is_a($this, 'A') or !(isset($this->Anotstatic) and $this->Anot

[PHP] Preventing static method calls in PHP4

2004-07-21 Thread Marcus Bointon
If I want to prevent a method from being called statically in PHP4, how can I do it? So far I've tried these techniques: Anotstatic = true; } function dynamic() { if (!isset($this) or !is_a($this, 'A') or !(isset($this->Anotstatic) and $this->Anotstatic)) echo "Method called static