note 51414 added to language.oop5.decon
| From: | apfelsaft at osu1 dot php dot net | Date: | Wed, 30 Mar 2005 09:59:24 +0000 |
| Subject: | note 51414 added to language.oop5.decon | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87176@lists.php.net to get a copy of this message | ||
at the end of a script all remaining objects aren't in fact destructed. it is only their
__destruct() method, which will be called. the objects still exist after that.
so, if your database connection object has no __destruct() or at least it doesn't disconnects
the database, it will still work.
in general, there is no need to disconnect the database (especially for persistent connections).
----
Manual Page -- http://www.php.net/manual/en/language.oop5.decon.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51414
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51414&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51414&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51414&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51414&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51414&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51414&report=yes
Search -- http://master.php.net/manage/user-notes.php