note 15012 deleted from keyword.paamayim-nekudotayim by felipe
| From: | felipe@php.net | Date: | Sat, 29 Dec 2007 22:01:56 +0000 |
| Subject: | note 15012 deleted from keyword.paamayim-nekudotayim by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134262@lists.php.net to get a copy of this message | ||
Note Submitter: tim dot ward at stivesdirect dot com
----
If you call a function in this way then you need to be aware that internal class references will not
work (presumably as there isn't an instance for $this to refer to)
e.g.
>Class fred
>{ function fred()
> { $this->fred2();
> }
> function fred2()
> { echo("hello world");
> }
>}
>fred::fred();
... will cause a
"Fatal error: Call to a member function on a non-object in ..."
This took me ages to work out