note 74519 added to language.oop5.decon

From: Date: Sun, 15 Apr 2007 19:46:19 +0000
Subject: note 74519 added to language.oop5.decon
Groups: php.notes 
Request: Send a blank email to php-notes+get-125423@lists.php.net to get a copy of this message
Note that it does not appear to be possible to instantiate an object in a destructor if its instantiation invokes __autoload(). The following does not work: <?php class MyClass { public function __destruct(){ // If you do not use include() or require() to get your classes // and if you rely upon __autload(), then this will trigger a fatal error new OtherClass(); } } ?> ---- Server IP: 194.109.193.76 Probable Submitter: 84.83.211.6 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.decon.php Edit -- https://master.php.net/note/edit/74519 Del: integrated -- https://master.php.net/note/delete/74519/integrated Del: useless -- https://master.php.net/note/delete/74519/useless Del: bad code -- https://master.php.net/note/delete/74519/bad+code Del: spam -- https://master.php.net/note/delete/74519/spam Del: non-english -- https://master.php.net/note/delete/74519/non-english Del: in docs -- https://master.php.net/note/delete/74519/in+docs Del: other reasons-- https://master.php.net/note/delete/74519 Reject -- https://master.php.net/note/reject/74519 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125423) next »