note 103152 added to language.oop5.patterns

From: Date: Tue, 29 Mar 2011 11:59:24 +0000
Subject: note 103152 added to language.oop5.patterns
Groups: php.notes 
Request: Send a blank email to php-notes+get-178291@lists.php.net to get a copy of this message
I have been working on the Lazy Initialization pattern added by sjh on January 21st. It has a few errors in it, including typos (abstract class, not abstract function), and a huge logical error: The constructor is private, but using ReflectionClass::newInstance() throws a ReflectionException if the constructor is not public. ---- Server IP: 69.147.83.197 Probable Submitter: 83.166.25.48 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.patterns.php Edit -- https://master.php.net/note/edit/103152 Del: integrated -- https://master.php.net/note/delete/103152/integrated Del: useless -- https://master.php.net/note/delete/103152/useless Del: bad code -- https://master.php.net/note/delete/103152/bad+code Del: spam -- https://master.php.net/note/delete/103152/spam Del: non-english -- https://master.php.net/note/delete/103152/non-english Del: in docs -- https://master.php.net/note/delete/103152/in+docs Del: other reasons-- https://master.php.net/note/delete/103152 Reject -- https://master.php.net/note/reject/103152 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178291) next »