note 91980 added to language.oop5.late-static-bindings

From: Date: Fri, 03 Jul 2009 13:28:57 +0000
Subject: note 91980 added to language.oop5.late-static-bindings
Groups: php.notes 
Request: Send a blank email to php-notes+get-157878@lists.php.net to get a copy of this message
Something you may find useful for passive code-testing: class BaseClass { function __get($id) { throw new Exception("Trying to access undefined property '$id'."); } function __set($id) { throw new Exception("Trying to access undefined property '$id'."); } } class MyClass extends BaseClass { // my implementation } Using these magic function as described above will help you to find classes that try to access an undefined (and undocumented) class-member. In most cases: this is an error based on misspelled member names. ---- Server IP: 69.147.83.197 Probable Submitter: 80.69.35.102 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.late-static-bindings.php Edit -- https://master.php.net/note/edit/91980 Del: integrated -- https://master.php.net/note/delete/91980/integrated Del: useless -- https://master.php.net/note/delete/91980/useless Del: bad code -- https://master.php.net/note/delete/91980/bad+code Del: spam -- https://master.php.net/note/delete/91980/spam Del: non-english -- https://master.php.net/note/delete/91980/non-english Del: in docs -- https://master.php.net/note/delete/91980/in+docs Del: other reasons-- https://master.php.net/note/delete/91980 Reject -- https://master.php.net/note/reject/91980 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#157878) next »