From a64c2270d8db7998ecf9bbe1bb738bae7da899c3 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Wed, 25 Aug 2010 00:45:53 +0200 Subject: [PATCH] Revert "DibiResult: removed destructor" This reverts commit 6d353c0b5d3c0a09352ecd4a1abfa07634913af6. --- dibi/libs/DibiResult.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dibi/libs/DibiResult.php b/dibi/libs/DibiResult.php index 69159e6c..16837528 100644 --- a/dibi/libs/DibiResult.php +++ b/dibi/libs/DibiResult.php @@ -79,6 +79,17 @@ class DibiResult extends DibiObject implements IDataSource + /** + * Automatically frees the resources allocated for this result set. + * @return void + */ + public function __destruct() + { + @$this->free(); // intentionally @ + } + + + /** * Returns the result set resource. * @return mixed