note 106369 added to function.get-class

From: Date: Mon, 31 Oct 2011 21:25:10 +0000
Subject: note 106369 added to function.get-class
Groups: php.notes 
Request: Send a blank email to php-notes+get-184264@lists.php.net to get a copy of this message
The test for existence of an instance of a particular class throws errors if the class hasn't been initialized. replace: if(!static::$m_pInstance[$class]) { with: if(!isset(static::$m_pInstance[$class])) { Sorry :) ---- Server IP: 64.71.164.2 Probable Submitter: 66.76.106.250 ---- Manual Page -- http://www.php.net/manual/en/function.get-class.php Edit -- https://master.php.net/note/edit/106369 Del: integrated -- https://master.php.net/note/delete/106369/integrated Del: useless -- https://master.php.net/note/delete/106369/useless Del: bad code -- https://master.php.net/note/delete/106369/bad+code Del: spam -- https://master.php.net/note/delete/106369/spam Del: non-english -- https://master.php.net/note/delete/106369/non-english Del: in docs -- https://master.php.net/note/delete/106369/in+docs Del: other reasons-- https://master.php.net/note/delete/106369 Reject -- https://master.php.net/note/reject/106369 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184264) next »