note 87785 added to language.oop5.overloading
| From: | AntP dot at osu1 dot php dot net | Date: | Sun, 21 Dec 2008 16:40:59 +0000 |
| Subject: | note 87785 added to language.oop5.overloading | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148424@lists.php.net to get a copy of this message | ||
Be extra careful when using __call(): if you typo a function call somewhere it won't trigger
an undefined function error, but get passed to __call() instead, possibly causing all sorts of
bizarre side effects.
In versions before 5.3 without __callStatic, static calls to nonexistent functions also fall through
to __call!
This caused me hours of confusion, hopefully this comment will save someone else from the same.
----
Server IP: 92.48.74.199
Probable Submitter: 217.28.7.128
----
Manual Page -- http://www.php.net/manual/en/language.oop5.overloading.php
Edit -- https://master.php.net/note/edit/87785
Del: integrated -- https://master.php.net/note/delete/87785/integrated
Del: useless -- https://master.php.net/note/delete/87785/useless
Del: bad code -- https://master.php.net/note/delete/87785/bad+code
Del: spam -- https://master.php.net/note/delete/87785/spam
Del: non-english -- https://master.php.net/note/delete/87785/non-english
Del: in docs -- https://master.php.net/note/delete/87785/in+docs
Del: other reasons-- https://master.php.net/note/delete/87785
Reject -- https://master.php.net/note/reject/87785
Search -- https://master.php.net/manage/user-notes.php