note 75197 added to language.oop5.decon

From: Date: Thu, 17 May 2007 15:32:19 +0000
Subject: note 75197 added to language.oop5.decon
Groups: php.notes 
Request: Send a blank email to php-notes+get-126665@lists.php.net to get a copy of this message
The manual says: "Destructor is called during the script shutdown so headers are always already sent." This is obviously not true. If you instantiate a class in a function or class method, but it is not returned by the method, nor is it saved in a global or object member variable, the object is cleaned up, and it's destructor is called. This can of course occur before anything is printed or sent to the client. ---- Server IP: 195.70.37.52 Probable Submitter: 213.134.24.38 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.decon.php Edit -- https://master.php.net/note/edit/75197 Del: integrated -- https://master.php.net/note/delete/75197/integrated Del: useless -- https://master.php.net/note/delete/75197/useless Del: bad code -- https://master.php.net/note/delete/75197/bad+code Del: spam -- https://master.php.net/note/delete/75197/spam Del: non-english -- https://master.php.net/note/delete/75197/non-english Del: in docs -- https://master.php.net/note/delete/75197/in+docs Del: other reasons-- https://master.php.net/note/delete/75197 Reject -- https://master.php.net/note/reject/75197 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126665) next »